Herald
OpenapiUsers

Get user roles

Returns the list of roles assigned to a specific user.

GET
/api/users/{userId}/roles

Returns the list of roles assigned to a specific user.

Path Parameters

userId*string

User ID

Formatuuid

Response Body

User roles

application/json
  1. response
roles*array<>
Example Request
curl -X GET 'https://example.com/api/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/roles'
Example Response
{
  "roles": [
    {
      "description": "string",
      "expiresAt": "string",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "source": "string",
      "sourceId": "string"
    }
  ]
}