GET
/
workspace
/
{workspaceId}
/
roles
curl --request GET \
  --url https://api.hyra.io/workspace/{workspaceId}/roles \
  --header 'Authorization: Bearer <token>'
{
  "roles": [
    {
      "name": "<string>",
      "group_roles": [
        "<string>"
      ],
      "permissions": [
        "<string>"
      ],
      "_id": "<string>",
      "manual_users": [
        "<string>"
      ]
    }
  ],
  "group_roles": [
    {
      "id": "<string>",
      "name": "<string>",
      "rank": 123
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Query Parameters

group
boolean

Response

200 - application/json
roles
object[]
required
group_roles
object[]