Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Use REST To Request User Password Reset on Crowd?

I'm writing a script to create users, add them to a group and then send a password reset email from Crowd.

I'm using application credentials to handle this and I can create the user and add them to a group fine, but when I try and request the password reset using

curl -k -D- -u "applicationname:apppassword" -X POST https://mycrowdserver/crowd/rest/usermanagement/1/user/mail/password?username=usertoreset

I get

HTTP/1.1 403 Forbidden


XSRF check failed

The documentation suggests "the application is not allowed to update the user's password" but I can't see how I would enable it anywhere in Crowd if it is even disabled.

I can't find a solution to this after a lot of searching, can anyone help please?

1 answer

1 accepted

0 votes
Answer accepted

Fixed it by adding the following to my request

 -H "X-Atlassian-Token:nocheck"

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

225 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you