-
Suggestion
-
Resolution: Unresolved
-
11
-
In API 1.0, we can get a list of repositories with a specific privilege group.
However, in API 2.0 there's no endpoint similar to the results of the API 1.0.
API 1.0 Specific Privilege group:
https://api.bitbucket.org/1.0/group-privileges/{accountname}/{group_owner}/{group_slug}
In API 2.0, we can achieve this by running the endpoints below:
Get all repositories in a workspace:
Iterate the list of repos to find what permissions a certain user group has on a repo:
However, considering the rate limit of 1000 requests per hour for /2.0/repositories/*, the rate limits will be reached quickly for workspaces with more than 1000 repos.
It would be very useful if we can have an endpoint to get a list of repositories with a specific privilege group in API 2.0.
EDIT: We also don't have a 2.0 endpoint for groups. There is API /2.0/workspaces/
{workspace}/members available in v2 but it returns complete list of users, including inactive users and with limited filtering options. It would be very useful to have /groups APIs available in v2 or at least add more filtering options added to /members API.