Forums

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

How to create new user via REST API (password is not setting)?

Jakub Szachewicz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2018

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:

https://confluence.atlassian.com/jirakb/user-management-rest-api-changes-in-jira-cloud-858756548.html?_ga=2.114571463.1517750713.1537865464-1671334023.1530858752

there is: "Passwords included in the request payload will always be ignored", but is it any way to change this password by REST API?

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events