Is there any script or automation to find the inactive users and deactivate the accounts of unused users
Community moderators have prevented the ability to post new answers.
This topic has been locked because the thread has become a bit dated. If you’d like to keep the conversation going or have any more questions, feel free to start a new topic. You can read more about necro posting (“raising threads from the dead”) in our Community Guidelines .
Cheers!
Hi, @Mahesh Kumar
Welcome to Community.
You have a few options for finding inactive users in Jira and checking what is still assigned to them.
If you use Jira Cloud, you can start by using JQL. For example:
resolution = Unresolved AND assignee WAS IN (inactiveUsers())
This helps you find unresolved issues that are still assigned to inactive accounts. You can also check shared filters and dashboards from Jira Settings → System → Shared items, then search by owner.
I recently used AI Apps Builder for Jira (the app that my team works on) to create a dashboard report that tracks the following:
unresolved issues assigned to inactive users
dashboards owned by inactive users
filters owned by inactive users.
I also included a billable-access review to see which inactive accounts still have product access and which groups they belong to.
I explained the full process here, including the JQL method and the Forge app I created:
https://community.atlassian.com/forums/App-Central-articles/How-Jira-Admins-Can-Find-and-Fix-Abandoned-Items-Faster-Without/ba-p/3214400
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, @Mahesh Kumar
Install our app User Management for Jira into your Jira Cloud on a 30-days trial, connect to your Organisation with an API key, and you should able to find users who have not been active in Cloud in general, or in Jira specifically or in Bitbucket specifically and de-license them or suspend or deactivate.
Use our User Insights chart or go to Bulk User Actions to dig deeper with various filters.
Reach out to our 24x7 support if you have any questions via chat on the website or Service Desk.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mahesh Kumar ,
There is no direct way of doing this in Jira.
The solution provided by @shiva kumar Gosul lists the issues and then you can check the assignee columns to see the inactive users. However, it will not show the inactive users who are not assigned to any issue.
You need to fetch all users via below rest api and then filter the inactive ones. The rest api has pagination, it takes 50 users on each page. You need to modify the startAt parameter if you have more than 50 users.
/rest/api/3/users?startAt=1
Using rest api requires some coding. As an alternative you can try Manage Users for Jira Cloud app developed by our team.
With this app, you can periodically check your users' status and rights to make sure that product access is limited to those who still have a valid business purpose and they have access only to what they need.
You can;
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mehmet A _Bloompeak_
To optimize our process, we proactively identify inactive users with assigned issues and reassign them to active users. If you wish to specifically view inactive users, a simple query can provide the necessary information.
project level
project = "ABC" AND assignee in inactiveUsers()
Team level
IT Team = "XYZ" AND assignee in inactiveUsers()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @shiva kumar Gosul ,
Your approach is helpful for detecting issues assigned to inactive users. In your terminology inactive users are the ones that do not have access to Jira anymore. They were deactivated by the Jira admin via user management page.
I guess what @Mahesh Kumar is asking different. He is looking for a way to detect users who haven't logged in to Jira for a long period of time(e.g in the last 90 days). So that, he can deactivate their accounts. In his terminology inactive users are the ones who did not logged in to the Jira for a long time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Mehmet A _Bloompeak_ thanks for clarifying. I don't think there is a way to figure to out. I too curious to know how that works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a method to track inactive users in Jira. Please refer to the following JQL query. I've included statuses to help you easily identify open or in-progress issues assigned to inactive users.
assignee in inactiveUsers() and status not in (closed, Abandoned, Cancelled, Complete)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.