Hi there,,
I'm trying to build app for my customers using Jira REST API, but if I fill all gaps (username, password, mail etc.) and POST it, then user is created, but I cannot login via this password. I have to reset it using admin dashboard and then in works.
I've found this:
there is: "Passwords included in the request payload will always be ignored", but is it any way to change this password by REST API?
Hi Jakub,
The answer for this one depends on if you're using Jira Cloud or Jira Server.
Server
You can utilize the /rest/api/2/user/password endpoint (click for the API document). This takes a PUT request and requires the user calling it to have System Administrator permissions in Jira.
Cloud
We do not allow password changes via API because the accounts used in Cloud are not specific to particular Cloud instances. The document you've linked to provides a fuller explanation:
The rollout of Atlassian account for JIRA and Confluence Cloud transfers the management of individual user accounts from a customer's JIRA or Confluence instance to Atlassian account, which are globally unique user accounts that can be used to access all Atlassian Cloud products (JIRA, Confluence, HipChat and Bitbucket). Any user account changes permitted through JIRA REST APIs have the potential to modify user accounts being used by another product, and pose a security risk for users of multiple Atlassian Cloud products.
Cheers,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.