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, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events