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

API 2.0 endpoint for specific privilege group

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mcerezo Mark C
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: