The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Unable to create user through rest api

Vikram Singh Rathor
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!
July 26, 2024

curl --request POST \ --url 'https://Domain.atlassian.net/rest/api/3/user' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --user 'emailID:API_token' \ --data '{ "name": "charlie", "password": "abracadabra", "emailAddress": "email_ID_For_new_user", "displayName": "charlie", }'

 

I am trying to create a user through Rest API, but getting errors
error 01:

 

"errorMessages": [
        "You must specify the products that user can access."
    ],

also tried ref link but still getting error:
ref link:

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/user-createUser

any solution?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Victor Law - Ricksoft
Community Champion
July 26, 2024

Hi @Vikram Singh Rathor

It is strongly recommended to refer to the following document for the user creation Atlassian Guard/Access:

The REST API document you refer to is for Jira DC 7.6.1 and NOT applicable for Jira Cloud.

Thank you.

 

Vikram Singh Rathor
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!
July 26, 2024

Thanks, this is helpful

Like # people like this
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events