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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to Deactivate the user via API?

Want to know Jira Align API for Deactivate the user 

Referd the below Doc but not able to find the API

https://<site-url>/rest/align/api/docs/index.html

1 answer

1 accepted

2 votes
Answer accepted

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: https://instance.jiraalign.com/rest/align/api/docs/index.html

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:

PATCH https://instance.jiraalign.com/rest/align/api/2/Users/<id>

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Align

Helpful hints if you're rolling Align out to your entire enterprise

(Or, What to expect when you’re expanding.) Once you've completed your Jumpstart, or your initial assessment of Jira Align, you'll start to think about how you can roll it out to the rest of your e...

2,450 views 9 36
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you