Forums

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

How do I update User status using API?

Samuel Homer September 16, 2024

I am trying to update a User's status using the PATCH and the API endpoint -  /rest/align/api/2/users/{userID}; however, I am having issues. I am following the instructions at this link: 

https://confluence.atlassian.com/jakb/how-to-change-the-status-of-a-user-using-the-jira-align-rest-api-2-1319576584.html

 

I am getting a 400 error.

1 answer

0 votes
Sunny Ape
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.
September 16, 2024

Hello @Samuel Homer 

Does your organisation have Jira Align?

If so, what results did you get when you followed the step-by-step instructions on the HTTP Error 400 Bad Request on Jira Align page?

Samuel Homer September 17, 2024

Hello @Sunny Ape ,

 

I actually do not believe we do, so that is likely why that endpoint is not working. 


I also tried using this documentation: https://docs.atlassian.com/software/jira/docs/api/REST/8.5.15/#api/2/user-updateUser

to the endpoint PUT /rest/api/2/user but am getting a Status Code 405.

REST.png

 

REST 2.png

 

Sunny Ape
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.
September 17, 2024

You seem to be very confused about which API endpoints are for which product and why. You have tagged your question as related to Jira Cloud, but you've provided a link to documentation for an old version of Jira SERVER. They are not the same thing.

For example, if you refer to the Users section of the Jira CLOUD v2 REST API docs, you'll see there is no such PUT endpoint for updating a User, as they are managed in a totally different manner in that product.

I suggest you start by liaising with your company's IT department to determine exactly what type of Jira product your company is using (I can't tell, as you've omitted the request path in your original questions and the screen grabs), then reference the correct documentation for it.

Have fun. Bye.

Samuel Homer September 17, 2024

K

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events