Expose a supported /rest/api endpoint to retrieve licensed users (resolving direct + group-inherited permissions)

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: API - REST
    • None
    • 1
    • 1

      Problem: There is currently no documented, supported REST API endpoint that returns the list of users counted against a Bitbucket Data Center license, resolving both directly-granted and group-inherited "Bitbucket User" permission. i.e., matching exactly what the Administration > Users page's "Licensed" filter shows.

      Existing options all fall short:

      • /rest/api/1.0/admin/permissions/users only returns users with a directly assigned global permission, it misses anyone licensed via group membership, which is the majority of real-world setups.
      • Direct database queries against internal schema tables are unsupported, fragile, and error-prone (e.g., can double-count users across multiple/stale user directories .
      • The Bitbucket Admin UI itself already implements this exact resolved logic internally for its own "Licensed" filter on the Users page but that logic is not currently exposed via any documented, supported API for external/programmatic use.

      Request: Expose a documented, versioned REST endpoint (e.g., GET /rest/api/1.0/admin/users?licenseStatus=LICENSED) that returns users resolved using the same logic already powering the Admin UI's "Licensed" filter.

              Assignee:
              Unassigned
              Reporter:
              Amit Singh
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: