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

0 votes
Answer accepted
Victor Law
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 • 2 people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events