Hello Atlassian team, you've been very helpful in the past so we want to share this problem with you and ask if you have a solution for it.
Context
We manage a pretty big organization (thousands of licences), and to keep our account count clean we would like to implement a way to automate the licence clean up. Basically the steps would be:
1. Getting a list of all the users with their last active date.
2. Filtering that list to leave only the ones that have not been active for the last 90 days
3. Deactivating the accounts within the filtered list
We were thinking of using a Python script within a Git repo integrated with our Jira to run this. But this would be a new field for us thus we've been doing it manually for the last couple of months (but believe automation is feasable)
If you need any clarification please let us know.
Thank you and regards,
Hello,
Welcome to community :)
Please find details below
1. Getting a list of all the users with their last active date.
Kindly refer to this https://developer.atlassian.com/cloud/admin/organization/user-last-active-dates/ and https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-search-get
GET /rest/api/3/user/search?query=&maxResults=1000This will return user details such as accountId, displayName, emailAddress, etc.
2. Filtering that list to leave only the ones that have not been active for the last 90 days
There is no direct way but you can export the list of yours as per this https://support.atlassian.com/organization-administration/docs/export-users-from-a-site/ and then filter out the inactive or active users
3.Deactivating the accounts within the filtered list
Please check this : https://support.atlassian.com/jira/kb/disable-or-remove-inactive-jira-users-in-bulk-in-jira-cloud/
Thank You,
Prachi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.