You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?
Hi,
As specify in the documentation, you should use the accountId.
I suggest you to:
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.
Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me as well.
I would like to note that the documentation that comes with the postman collection displays the wrong format for the accountId.
Meaning it doesnt show the example as <number>:<guid> but instead just the <guid> piece.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used the API Token generated under my Atlassian Account Settings.
I know you asked this almost 2y back so the UI must be different. But for anyone else that sees this page, you will need to generate a Key there and use it for the API calls.
You cannot use the API Key generated in admin.atlassian.com. This key is for using the admin APIs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.