Forums

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

Delete inactive users from JIRA

Yogesh
Contributor
March 12, 2012

I am looking for a readymade plugin / script / automation which may help us to delete inactive users from JIRA. I know that Jelly Script can help me here but I dont see any point in reinventing the wheel if anyone in this entire JIRA world has already implemented something.

Atlassian folks, here is a request to publish piece of code to handle these small requests - It will surely help community as well as Atlassian too.

2 answers

0 votes
Sorin Sbarnea (Citrix)
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.
July 23, 2012

The closes thing to this would be https://gist.github.com/3170993 but it's not complete yet.

I am working on implementing something in order to answer my own question from https://answers.atlassian.com/questions/71722/how-to-deactivate-disable-jira-users-on-in-am-automatic-way-that-would-work-on-public-and-private-instances-too

I am looking for a solution that requires no further maintenance and that will work for any jira auth setup.

0 votes
Thomas Schlegel
Community Champion
March 12, 2012

I don't think that there are is a ready script for this. First you have to decide when a user is inactive.. Second, you cannot delete a user that is the reporter or the last assignee of an issue.

I would not delete these people, but remove the "jira-user"-role from them.

Yogesh
Contributor
March 12, 2012

For sure I am not expecting deletion of any participants.

When we configured JIRA first time, earlier JIRA admin imported all 29000 users to JIRA. In reality 750 users are actively using the same. I have a list of users who all are active. May be a good approach to delete 27000 users would be -

1. Query the user one by one

2. Compare the user with the declared active users in CSV.

3. If user is available in the CSV then dont delete the same else delete it for ever!!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events