Create
cancel
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

Bitbucket Server REST Api - Get the calling users project permissions

Hi, 

I'm building integration for Bitbucket Server into an application and I need to retrieve all the projects a user has access to, along with what level of access they have. The caller in this case is the authenticated user. 

This endpoint will let me find out what permission the user has at the user level with the caveat that they have the PROJECT_ADMIN permissions 

https://docs.atlassian.com/bitbucket-server/rest/6.10.0/bitbucket-rest.html#idp159

This isn't quite what I need, as I need the calling user to be able to know what permissions they have on the project. For example I've logged in as a user with PROJECT_READ I won't be able to call the above endpoint as I'll get a 401; Do I then use that as an indication that they only have read access?

This seems a bit hacky. Is there an alternative method I can use? 

 

Kind regards, 

0 answers

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,787 views 0 7
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