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

I have site admin access, however I am unable to add an user to a group using Rest API,what can I do

I have site admin access, using http basic auth, I am able to create user and groups using REST API; however, when I try to add an user using the following POST resource /rest/api/2/group/user?groupname=personal2, and payload {"name": "userX"}, I get the following error.

"errorMessages": [
"Specified user does not exist or you do not have required permissions"
"errors": {}

Could anyone help me?


2 answers

1 accepted

0 votes
Answer accepted


As specify in the documentation, you should use the accountId.

I suggest you to:

  1. Use Create user endpoint and set a variable with the accountId in the response
  2. Use the Add user to group endpoint with your accountId

If the user is already created, use Find users endpoint to get the accountId

It works, Thanks a lot Quentin, I appreciate your help on this matter.



0 votes

What type of access token did you use to create the user? When I execute the POST request with the acces token I generated in jira, I get a'failed to create user' error message... 

Suggest an answer

Log in or Sign up to answer

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