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

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 endpoint across all 7 revisions of this API.