Get permissions for a role
/api/v1/roles/{id}/permissionsReturns the permission keys currently attached to a role as a sorted { items } array of strings. Returns 404 when the role does not exist in the current Environment. Requires the rbac.view_roles permission.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required Responses
application/json
items *string[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X GET "https://auth.canopy-io.com/api/v1/roles/value/permissions" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ "string" ] }
Tell us how we can improve this guide.