Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,694
Community Members
 
Community Events
176
Community Groups

BitBucket Group Repos & Permissions API

I'm looking to get an API query I can run that will show me a list of the groups with the user membership, the repositories and the repository permissions.  I am using Postman with this GET {{baseUrl}}/workspaces/workspacename/permissions/repositories?page=20&pagelen=100

 

It works great but it has over 3k results.  I think it'd be easier if I can get a list of groups with their repository permissions and then the users' group membership.

Screen Shot 2022-02-21 at 4.20.04 PM.pngScreen Shot 2022-02-21 at 4.20.16 PM.png

1 answer

1 accepted

0 votes
Answer accepted
Caroline R Atlassian Team Feb 25, 2022

Hi, @Kristin Lyons, thank you for reaching out to Atlassian Community.

We do have groups and group-privileges endpoints that could be useful to you. Just to give you some context around our API, our old rest API 1.0 used to include endpoints that would allow these sorts of operations, however, the 1.0 API has been deprecated with the intent that the 2.0 API would be a direct replacement. 

With that said, there are a few old 1.0 endpoints that we kept in place as a temporary solution until the 2.0 replacements are made available.

Until the Atlassian platform services are fully available in Bitbucket, we will continue to support these 1.0 REST endpoints: 

/1.0/groups
/1.0/group-privileges
/1.0/invitations
/1.0/users/{accountname}/invitations

You can find all the information about these endpoints here: 

I hope this helps, but do let me know if you have any questions. 

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events