Error setting a password through REST

David Fitzjarrell June 27, 2019

I am getting a 404 when trying to set a user's password.

Here is my curl running from a Mac:

curl -i -X PUT -H "Authorization: Basic (email:api-key | base64 hash)" -H "Content-Type: application/json" -d '{"passord": "<newPassword>"}' "https://<mySite>.atlassian.net/rest/api/latest/user/password?username=<userName>&key=<userName>"

I have followed this older post, but no luck: https://community.atlassian.com/t5/Jira-Core-questions/Error-changing-user-password-through-REST/qaq-p/160982

I cannot find documentation on password changes:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/

Was this functionality removed?

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2019

Hi @David Fitzjarrell ,

In Jira Cloud the users are not managed by Jira anymore but by the Identity platform and therefore there is no Jira REST API endpoint to set/change a user password anymore. This used to exist before and that's why you still find references to it on the Internet. 

For further details you can see:

 

We do have the below Feature Request open in our system to have this functionality back, but since it got very few votes in couple of years there are chances it won't be taken into consideration, at least not in the short term:

 

You may want to vote for it and add yourself as a watcher so that you will be notified by email in case of any update.

 

Finally, in case you have Atlassian Access, then you can manage the users passwords in your Identity provider and use the provided APIs:

 

I hope this helps.

 

Have a nice weekend,

Dario

Suggest an answer

Log in or Sign up to answer