How to deactivate multiple jira users by programmatically (By any script)?

Nanda Kishore Reddy.G July 2, 2015
 

3 answers

0 votes
GabrielleJ
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 2, 2015

Create a script that will deactivate the users:

 

1) Through the JIRA API https://docs.atlassian.com/jira/REST/latest/

2) Throught the database https://developer.atlassian.com/jiradev/jira-architecture/database-schema

0 votes
Benito Picarelli
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2015

Hello Nanda,

You can query your database for users:

select * from cwd_user

and can simply change the "active" value to 0, instead of 1. This will automatically deactivate the user.

0 votes
João Palharini
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2015

Could you specify the condition you would base the deactivation? I believe you may be able to achieve this through SQL (that is, if you are using JIRA Server).

Suggest an answer

Log in or Sign up to answer