Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17804

API 2.0 endpoint support for groups

XMLWordPrintable

    • 11
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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}
      

      https://confluence.atlassian.com/bitbucket/group-privileges-endpoint-296093137.html#group-privilegesEndpoint-GETalistofrepositorieswithaspecificprivilegegroup

      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.

              Unassigned Unassigned
              mcerezo Mark C
              Votes:
              18 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: