Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12527

Provide a restful resource to verify default access permission to all projects at once

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • API - REST
    • None
    • 3
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem Definition  

      Nowadays three separate requests need to be executed for each project in order to verify the default access permissions:

      • GET /rest/api/1.0/projects/ABC/permissions/PROJECT_ADMIN/all
      • GET /rest/api/1.0/projects/ABC/permissions/PROJECT_WRITE/all
      • GET /rest/api/1.0/projects/ABC/permissions/PROJECT_READ/all

      Multiply that by thousands of projects and you see how complex and time consuming it becomes to determine default access permissions for all projects.

      Suggested Solution

      There should be a single endpoint to determine the default access permissions for all projects at once rather than running the above three queries for each project.

      Workaround

      A script could first execute GET /rest/api/1.0/projects in oder to retrieve the list of projects and then, for each project, run the three endpoints mentioned above.

              Unassigned Unassigned
              fkraemer Felipe Kraemer
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: