Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

API "rest/api/3/user" page not found

Emanuel Gonzalez January 5, 2022

Hi everyone, 

I am automating tasks and I find the need to create users through "curl". I have read the API documentation but when testing it I receive an error {"errorMessage": "Page not found"}

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-get

curl --request POST \                                                                  
 --url 'https://kiu.atlassian.net/rest/api/3/user' \
 --user 'USER:API-key' \
 --header 'Accept: application/json' \
 --header 'Content-Type: application/json' \
 --data '{
 "emailAddress": "test@test",
 "displayName": "John Test",
 "name": ""
}'

Any helps??

Regards,

 

1 answer

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2022

Hi @Emanuel Gonzalez 

Welcome to the Community!!

The User needs to have prior Atlassian account with an email id that you are inviting.

The API is correct, I have checked it now and was able to invite the user who has an Atlassian account

curl --request POST \
--url 'https://your-site.atlassian.net/rest/api/3/user' \
--user 'email:token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"emailAddress": "email-id",
"displayName": "Full Name",
"name": ""
}'

Let me know if you are still facing the issue

Thanks,
Pramodh 

Emanuel Gonzalez January 5, 2022

Must the user have a created account? Is it possible to create Atalassian accounts used curl? 

I expect your help thank you.

Regards,

Emanuel.

Emanuel Gonzalez January 5, 2022

I see all the calls return an error:

curl --request GET \
--url 'https://kiu.atlassian.net/rest/api/2/users/search' \
--user 'egonzalez@DOMAIN:API \
--header 'Accept: application/json'
{"errorMessage": "Page not found"}%

Do I need to enable an remote api option???

Captura de pantalla de 2022-01-05 16-04-58.png

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2022

Hi @Emanuel Gonzalez 

The user needs to have an Atlassian account prior to adding the respective user in your site.

Please ask your user to create an Atlassian account then you can invite them to your site

Since this is cloud, when an unmanaged user directory is present, this is the way!!

Thanks,
Pramodh

Emanuel Gonzalez January 5, 2022

Is it possible that the plan paid by the company does not have this functionality? I don’t think we have the cloud service.

when I do the manual process from user management and send the invitation to join, if it works.

Captura de pantalla de 2022-01-05 16-12-42.png

Emanuel Gonzalez January 5, 2022

I may be wrong and we don’t have the right service hired. I need someone from support to talk to me. Thank you.

Emanuel Gonzalez January 5, 2022

How do I use the rest API to create an Atlassian account? or how do I send an invitation?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events