Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is thew best way to check a permission granted to currently authenticated BitBucket user

Praveen Kalawad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2018

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 

  • accountname
  • repo_slug
  • privilege_account

Thanks in advance.

1 answer

0 votes
Michael Walker
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 19, 2018

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events