Get current user permissions
/v1/auth/me/permissionsReturns the authenticated principal's app-wide permission keys as an items array. Guarded by UserJwtGuard and rate-limited to 10 per minute. Admin principals (type: user) bypass RBAC entirely and always receive an empty array — they are recognized by principal type, not by permission list; an empty array is also returned when the token carries no Account. For non-admin principals the list is resolved from active (date-bounded) role assignments in the token's environment.
Responses
application/json
items *string[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X GET "https://auth.canopy-io.com/v1/auth/me/permissions"
{ "items": [ "string" ] }
Tell us how we can improve this guide.