/
How to deactivate users in Jira using Jira Command Line Interface (CLI)
How to deactivate users in Jira using Jira Command Line Interface (CLI)
This article helps you deactivate Jira users in bulk using Jira Command Line Interface.
Instructions
Use the action updateUser with runFromCsv to deactivate users in bulk.
- Create a .csv file that contains userIds of the users you wish to deactivate the accounts of. An example file is shown below:
Run the command below to deactivate the user accounts that are provided in the .csv file (user.csv in this example).
--action runFromCsv --file "user.csv" --common "--action updateUser --deactivate"
The parameters used in the above action are
file: Name (or path) of the file specified in the command.
common: Common parameter string added to all run actions.
continue: This parameter can be added, if the user does not exist, and you want the action to continue.
- Make sure to run the command in a non-production environment before testing in a production environment.
- Update the .csv file with the usernames appropriately.
- This action is not available for Cloud.
Related content
How to remove all users from a group using the Jira Command Line Interface
How to remove all users from a group using the Jira Command Line Interface
More like this
User Activation/Deactivation
User Activation/Deactivation
More like this
Create bulk users in Jira using Jira Command Line Interface (CLI)
Create bulk users in Jira using Jira Command Line Interface (CLI)
More like this
How to remove a user from a project role for multiple projects using the app, Run CLI Actions in Jira
How to remove a user from a project role for multiple projects using the app, Run CLI Actions in Jira
More like this
Bulk user account deactivation (last-login-based)
Bulk user account deactivation (last-login-based)
More like this
How to get all the Jira users list using Jira Command Line Interface (CLI)
How to get all the Jira users list using Jira Command Line Interface (CLI)
More like this