Where is the REST API that allows a customer to trigger the forgotten password flow. We want to replicate the login and forgotten password flow in our custom UI (ReactJS) for customers without using the standard Jira customer portal.
The login flow is fine as we can use the api/2/user call, but I can't find anywhere that allows a customer to start the forgotten password flow.
Hello James,
Thank you for reaching out.
The Rest API call to reset the password for SD customers is the same that internal Users of Service Desk. Supposing you are using JIRA Server as you tagged in this question, this should work for you:
- /rest/api/2/myself/password (using the authenticated user’s credentials for API authentication)
- /rest/api/2/user/password (using Jira admin credentials for API authentication)
You can check those APIs in the documentation below. P.S: Look for the API related to your JIRA Version, although this specific one should be the same from 7.6 and above:
Change password JIRA Server 8.0
However, if you are using JIRA Cloud, some changes were performed to prevent the use of that and other related Cloud API Rest endpoints since the implementation of Atlassian Accounts. Those changes are explained in User management REST API changes in JIRA Cloud.
Let me know if this information helps.
Hi, thanks for getting back.
Unless I'm misreading the docs, you need to provide the current password in order to change the password. This wouldn't be possible if the customer has forgotten their password.
So is there an API I could call, for example, that would send a password reset email to the customer, or would allow someone with admin credentials to reset the password without knowing the current password?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.