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

Unable to create group with the rest api function when using "administrator" personal access token

Currently I am writing a script to test the Rest API functions of BitBucket. Using the administrator personal access token, I was able to use most of the Rest API functions, such as creating projects, repository. The administrator account also has "system admin" set in the global permission.

However, when I try to use the create group API function (http://hostname:7990/rest/api/1.0/admin/groups?name=testcreategroup) , it will result in error code : 401.

[context: null,
message: You are not permitted to access this resource, exceptionName:com.atlassian.bitbucket.AuthorisationException]


When I test using curl in the command line, using the administrator token will result in the same error. However if I use username and password instead (-u admin:password), the command will be successfully executed and the group created. 

Would like to clarify if this is an issue/bug, or is this an expected behavior from using personal access token for group creation? or am I actually missing out some permission setting for the administrator account/token? 

Thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,827 views 10 16
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