Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 Rest API 2.0 get all users with access to repository


is there a way to get from bitbucket REST API 2.0 list of all users that have access to the repository?

Basically, the same data that is presented on the web page in "User and group access" in the admin section for the repository.

I have tried something like{name}/sample-repo/access but this resource does not exist.

Thank you

1 answer

1 accepted

0 votes
Answer accepted

Hello Krzysztof,

Using the Bitbucket v2 REST API does offer more endpoints then its v1 counterpart. Using the API to access which users are within a repo is a bit more straight forward now. The best option to see which users are within a repo is to use the /2.0/user/permissions/repositories endpoint. This endpoint will allow you to see all users with their permission level granted to your repositories. This endpoint does allow for additional filtering using the following examples:"geordi" or q=permission>"read"

I hope this proves helpful in your quest to gather all users within a repo.

Stephen Sifers

When I try this endpoint, I get the repositories the connected user can access, not the users in a repository (I believe this is consistent with the doc:

Am I missing something?

Like amishra80 likes this

Did you got any answer?

Well, this endpoint not return all users have access in specific repositories, do you have another measures?

How is this the accepted answer? It doesn't answer the question at all.

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...

357 views 2 10
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