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
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply. This has worked and I have managed to update the email. Wishing you a good day :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.