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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events