Forums

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

Error setting a password through REST

David Fitzjarrell June 27, 2019 edited

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
TAGS
Atlassian, Team '25 Europe, Atlassian conference, AI-powered teamwork, Atlassian events, keynote speakers, Barcelona tech conference, Atlassian Williams Racing, Carlos Sainz, Jenson Button, Mike Cannon-Brookes, Anu Bharadwaj, Atlassian Rovo

Atlassian Williams Racing is coming to Team '25 Europe 🏎️

Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.

Register now
AUG Leaders

Atlassian Community Events