Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,701
Community Members
 
Community Events
168
Community Groups

How to get inactive users of JIRA with groovy script?

Can we get list of inactive users for Jira server and JSD and Confluence users, like I need export list of users who are inactive from last 90 days at the same time they need to get notification automatically using groovy script 

1 comment

Daniel Ebers Community Leader Oct 27, 2020

Hi Upendar,

welcome to the Atlassian Community.

"Inactive" in that sense probably means "the user was not logged in for 90 days", am I correct?
I assume that this is meant as you are planning to notify them later using a groovy script. Probably the medium will be mail.

I found the knowledge base article to determine the last login date for a user.

https://confluence.atlassian.com/jirakb/find-the-last-login-date-for-a-user-in-jira-server-363364638.html

Based on that you can implement a mechanism to either deactive them, or, to notify them - as you explained.

For deactivating users there is a script from Adaptavist library around which gained some attention:
https://library.adaptavist.com/entity/deactivate-users

Cheers,
Daniel

Like # people like this

Comment

Log in or Sign up to comment