Forums

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

How can I list users according to when they last logged in

Adam Sterrie
Contributor
August 18, 2023

We are running short on licenses, so I want an efficient way to produce a list of users according to when they last logged in. This will let me create a hit list of users from whom I can remove their licenses.

I am looking for something I can run using curl ideally that churns out a list including user email, full name and last login date. Then I can email them to warn them that they are about to lose access, to give then a chance to respond.

2 answers

2 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2023

Hi @Adam_Sterrie 

To do this from inside of Jira, you could export the list of users from admin user management, sort/filter the resulting CSV file by last accessed (by product as needed), and then use email addresses for your contact list.

I believe you could also call the REST API to gather this same information to do the same, although I have not tried that approach.

Kind regards,
Bill

0 votes
Answer accepted
Utkarsh Singh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 19, 2023

Hi @adam You can either use the Export functionality of the Admin hub and perform the steps manually or you can use the User API to create a script to perform the action.

Adam Sterrie
Contributor
August 20, 2023

Thanks!

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