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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.