Skip to main content
GET
/
v1
/
permissions
/
roles
Custom Roles
curl --request GET \
  --url https://api.cadanapay.com/v1/permissions/roles \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "description": "This is the role for a finance manager",
      "id": "8ef9a712-cdae-4110-b1ea-9ba95abbee6e",
      "name": "Finance Manager",
      "operations": [
        {
          "description": "Operations related to user management",
          "permissions": [
            {
              "action": "CAN_VIEW_USER",
              "value": true
            }
          ],
          "resource": "user"
        }
      ],
      "roleType": "custom"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

X-MultiTenantKey
string

Required when using a Platform API token. The tenant key identifying which business to operate on.

Response

get permission roles response

data
object[]