I took a look at REST API documentation, but couldn't find any ways to get such information directly.
I tried privileges Endpoint GET privileges for an individual.
1. Call
GET https://api.bitbucket.org/1.0/privileges/{accountname}/{repo_slug}/{privilege_account}
Could you please provide some sample example with details of
Thanks in advance.
Hi Praveen,
I would like to clarify as the documentation you located is intended for Bitbucket Cloud which has different API endpoints from Bitbucket Server. As this is tagged as "server", I will assume that is the case for now.
We have a KB article "How to report on permissions by using REST API endpoints" that goes into detail on this topic. We also have an open Feature Request BSERV-9690 that would provide a way to retrieve a user's permissions in an easier manner.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.