Forums

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

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

Nanda Kishore Reddy.G July 2, 2015
 

3 answers

0 votes
Deleted user 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
TAGS
AUG Leaders

Atlassian Community Events