Skip to main content

Get project-role mappings

GET 

/api/admin/projects/roles/:roleId/access

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.

Request

Path Parameters

    roleId stringrequired

Responses

projectRoleUsageSchema

Schema

    projects

    object[]

    A collection of projects with counts of users and groups mapped to them with specified roles.

  • Array [

  • project stringrequired

    The id of the project user and group count are counted for.

    Example: project-a
    role integer

    Id of the role the user and group count are counted for.

    Example: 3
    userCount integer

    Number of users mapped to this project.

    Example: 1
    serviceAccountCount integer

    Number of service accounts mapped to this project.

    Example: 1
    groupCount integer

    Number of groups mapped to this project.

    Example: 1
  • ]

Loading...