Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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 Jan 05, 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 

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

I expect your help thank you.

Regards,

Emanuel.

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 Jan 05, 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

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

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

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
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

37,382 views 27 124
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you