Projects

Get project-role mappings

Enterprise feature

For the provided role, retrieves a list of projects that use this role. For each project it also contains information about how the role used in that project, such as how many users, groups, or service accounts that use the role.

get/api/admin/projects/roles/{roleId}/access

Request

  • Base URL
    https://app.unleash-instance.example.com
  • URL
    https://app.unleash-instance.example.com/api/admin/projects/roles/{roleId}/access
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

roleIdstring required

Response

projectRoleUsageSchema

Example response

{
  "projects": [
    {
      "project": "project-a",
      "role": 3,
      "userCount": 1,
      "serviceAccountCount": 1,
      "groupCount": 1
    }
  ]
}

Changes

No recorded changes to this operation across all 7 revisions of this API.