Forums

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

Update users through REST API

Ula_Emrich October 10, 2024 edited

Hi, 

I am trying to update user email address using REST API following the documentation on the Jira 9.3.0 (atlassian.com)  but I am getting 405 Method Not Allowed.

We have managed accounts in JIRA and I am an org admin. I have generated a token and use Postman to send requests to JIRA REST API. I can retrieve user data but I can't perform updates.

Is this not possible through the api? 

Url = https://<org>.atlassian.net/rest/api/2/user

Method: PUT

Basic authentication: <username>:token

Request

{

"displayName": "Name", 

"emailAddress": "example@test.com",

"products": []

}


Thank you, 

Ula 

 

2 answers

1 accepted

1 vote
Answer accepted
Ula_Emrich October 10, 2024

I think this method is just not allowed based on the JIRA Cloud REST API The Jira Cloud platform REST API (atlassian.com)

Is this going to be available at some point? 

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.
October 10, 2024 edited

We have managed accounts / Is this going to be available at some point?

It already is available.

Just Google 'jira managed users rest api' and the first result is the answer. Click here for an example.

I am an org admin / Senior Developer - Operations Systems

If you say so

Ula_Emrich October 11, 2024

Thank you for your reply. This has worked and I have managed to update the email. Wishing you a good day :) 

Chris Green February 27, 2025

@Ula_Emrich - looking to do the same. How did you get this to work using the User management REST API? an you provide an example based on you original post? 

0 votes
Jim Knepley - ReleaseTEAM
Atlassian Partner
October 10, 2024

Hi @Ula_Emrich 

I think you might be looking at the wrong place. In the cloud, user attributes like email addresses would be part of the Organization API, not the Jira API. Unfortunately, I don't see a way to update a user in an organization either.

It makes some sense... a managed account has an email address in a domain that you have claimed. It could get messy If you were to change that email address to another domain.

Ula_Emrich October 11, 2024

Thank you for your reply. It's not very clear from JIRA documentation which API should be used and what is possible. I found some post in the community from the past where people managed to update users using same API as mine. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events