Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get last login date of users using rest API?

Etai Leers
Contributor
July 10, 2023

In Jira cloud, is it possible to get certain user/ all users last login date using Rest API / coding or another way? 

2 answers

1 accepted

1 vote
Answer accepted
Tom Buntinx July 10, 2023

Hi @Etai Leers 

Unfortunately this is a requested feature:
https://jira.atlassian.com/browse/JRACLOUD-43782

You can vote for this feature, but it's not guaranteed when it will be implemented, if ever.

 

Why would you like to retrieve this information? In what manner are you trying to process it?

Etai Leers
Contributor
July 10, 2023

As a Jira admin I would like to better control the users management and if someone wasn't login more then "X" time I would automatically deactivate his account.

Like # people like this
1 vote
Loïc Dewerchin
Contributor
April 12, 2024

Adding this answer to avoid possible confusion for people looking for this feature.

Although some of the Jira tickets asking for this feature are still "In Progress" / "Gathering interest" it is actually already possible using the Organizations REST API, see : https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-users-accountid-last-active-dates-get

Etai Leers
Contributor
April 21, 2024

Thanks @Loïc Dewerchin 

It didn't worked for me.
Got this error message even though both the creds and the "orgId" and "accountId" were correct.

{
"code": 401,
"message": "Unauthorized"
}
Loïc Dewerchin
Contributor
April 21, 2024

Hello ,

read the docs about authentication for more information : https://developer.atlassian.com/cloud/admin/organization/rest/intro/#auth

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events