Role and grant

List user roles

Lists all roles assigned to users in your organization.

get/authz/user_role

Query parameters

user_idinteger required

Filter roles by user ID.

nrnstring required

Filter roles by NRN.

include'pending'

Include roles that are pending acceptance.

Response

The operation was successful.

user_idinteger required

The unique ID of the user that has been assigned roles.

Example response

[
  {
    "user_id": 789,
    "grants": [
      {
        "id": 12345,
        "nrn": "organization=1:account=1:namespace=1:application=4",
        "status": "active",
        "role": {
          "id": 696188987,
          "name": "Admin",
          "slug": "admin",
          "description": "Manage all the resources",
          "can_assign_roles": [
            {
              "id": 700317756,
              "name": "Developer",
              "slug": "developer",
              "description": "Can create builds and releases, scopes, and start deployments"
            }
          ]
        }
      }
    ]
  }
]

Changes

No recorded changes to this endpoint across all 1 revision of this API.