How to get inactive users of JIRA with groovy script?

upendar reddy October 21, 2020

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
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.
October 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
Shiuh Rong Yong September 13, 2022

great info!

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events