List the roles an organization's directory may grant
/api/v1/organizations/{id}/directory/grantable-rolesWhat this organization's identity provider is allowed to hand out, and which role arriving people hold.
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 *DirectoryGrantableRoleResponseDto[]
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/directory/grantable-roles" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ { "id": "string", "name": "string", "description": "string", "is_default": false } ] }
Tell us how we can improve this guide.