The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Disabling multiple users in bulk - using REST?

Rahul Aich [Nagra]
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 Champions.
May 15, 2014

Is there a way to disable say 100 users (on jira) at one go, instead of going into each profile and disabling him one by one.

PS: JIRA6 has the disable user checkbox.

Can we use REST API to do bulk disabling?

Rahul

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Bob Swift
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 Champions.
May 19, 2014

updateUser from JIRA Command Line Interface can be used in combination with one of the run actions like runFromSql, runFromCsv, or runFromList. This can be done on a live system.

1 vote
codelab expert
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 Champions.
May 15, 2014

The GUI has no option for doing this in a bulk operation.

The fastest way to solve this issue is:

1. Connect to your JIRA database

2. Search for table [dbo].[cwd_user]

3. Select all relevant users and set the value in column "active" to "0"

Deleted user
May 19, 2014

Make sure the database is shutdown when doing this operation :)

Daniel Varela Santoalla
Contributor
April 25, 2016

Well, I suppose you mean that JIRA is shut down. Might be a tad difficult to change a value in a database that is not running wink wink

Like Cesar Lombao likes this
0 votes
Deleted user
May 19, 2014

Hi Rahul,

This thread gives an overview of some (safe) options to deactivate users:

https://answers.atlassian.com/questions/127643/how-to-deactivate-a-user-programmatically-java-rest-sql

Comments for this post are closed

Community moderators have prevented the ability to post new answers.