Get identity's effective permissions
/api/v1/identities/{id}/permissionsReturns the identity's effective Application-wide permission keys for the current Environment as a flat items array of strings, resolved across all of its role assignments. Use this to answer "what can this identity do" without replaying individual assignments. Returns 404 when the identity has no membership in this Environment.
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/identities/value/permissions" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ "string" ] }
Tell us how we can improve this guide.