Hi, I am trying to add an user to group using bitbucket api.
But failing because of naming exceptions.
Bitbucket Version: 5.5.4.
POST https://bitbucketURL/rest/api/1.0/admin/groups/add-user
{
"context": "NewGroup",
"itemName": "test1"
}
Error:
{"errors":[{"context":null,"message":"No user named 'test1' was found","exceptionName":"com.atlassian.bitbucket.user.NoSuchUserException"}]}
Can someone please tell me what is wrong in this
Hello, I use the following syntax:
curl -k -u <ADMIN>:<PASSWORD> -X PUT -H "Content-Type: application/vnd.atl.plugins.plugin+json" -d '{"name": "userID","displayName": "USER_NAME","email": "userID@company.com"}' https://<bitbucketURL>/rest/api/1.0/admin/group/add-user
Having said that, this works only for internal directories
I hope this help
Lonnie
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.