Skip to main content

Get project-role mappings

GET 

https://us.app.unleash-hosted.com/ushosted/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
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L 'https://us.app.unleash-hosted.com/ushosted/api/admin/projects/roles/:roleId/access' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
Request Collapse all
Base URL
https://us.app.unleash-hosted.com/ushosted
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!