Count an organization's own roles
/api/v1/organizations/{id}/roles/usageHow many roles the organization owns, and the most it may own. Read by the developer's key (rbac.view_roles) or a tenant administrator holding canopy:roles.manage (or canopy:organization.manage) at the organization node.
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
data *OrganizationRoleUsageResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/organizations/value/roles/usage" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "data": { "count": 0, "limit": 0 } }
Tell us how we can improve this guide.