Access not permitted when using read only token

Yann Larhantec January 31, 2023

Hi,

I have a SYS. ADMIN user.

I created an HTTP access tokens for this user with "PROJECT READ" & "REPOSITORY READ" permissions.

When I try to GET https://bitbucket.url/rest/api/1.0/projects/XXXXX/permissions/users with the user / token, I get 

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

When I use the user / password (instead of the read only token), I get the correct answer.

Why an admin user, with a read only token, can't access this ressource ?

Not being able to PUT, DELETE, this is logical, but why can't I use GET ?

Regards,

Yann

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.21.4
TAGS
AUG Leaders

Atlassian Community Events