Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Deactivate the user via API?

Mohamed Musheer March 30, 2021

Want to know Jira Align API for Deactivate the user 

Referd the below Doc but not able to find the API


1 answer

1 accepted

2 votes
Answer accepted
Rodrigo Cortez
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 30, 2021

Hi @Mohamed Musheer,

Nice question!

Assuming a few things...

a) You've read the following Help Center articles: 10X: API 2.0 

b) You've looked at the specific documentation (aka Swagger), that's available in your Jira Align instance:

c) You have a valid API 2.0 token, and corresponding grants to perform this operation in UI


To deactivate a user, by using Jira Align API 2.0, make the following call:


Where <id> is the userId of your user.

As request body, use the following JSON:

"op": "replace",
"path": "/locked",
"value": -1

A successful deactivation call should return an HTTP 204 (Success) response code.

Keerthi January 29, 2024

getting error like "The target location specified by path segment 'locked' was not found."

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events