Get every permission an identity holds at a node, and what grants it
/api/v1/identities/{id}/accessEvery permission the identity holds at node_id, each with granted_by: the roles that grant it, the lineage node each is held at and access_type (direct at the node itself), nearest the node first. The same assignments and enabled roles evaluate reads, so every key listed is one evaluate allows at the node; an inactive identity holds nothing. Unpaginated, sorted by key. Requires the identity.view permission. Returns 404 when the identity has no membership in this Environment, or when node_id names no node in it.
Authentication
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
production_identities.accessDeveloper ConsoleAccess identities in production Environments. Applies to users only, and only in an Environment marked production: its identities are real end users. API keys and identity principals are exempt.
Path Parameters
idstring Required Query Parameters
node_idstring · uuid Required The node to answer for.
Responses
application/json
items *IdentityAccessItemDto[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Errors
When the request can't be completed, the response body includes a stable error code you can branch on, and a correlation_id (also sent as the X-Correlation-Id header). Quote the correlation id when you contact support: it identifies the exact request in Canopy's logs. A request refused by an authorization check answers 403 with the code authorization.denied, and its data names the denial_reason and the permission checked.
environment.production_identities_forbiddenForbiddenThe Environment is marked production and the caller is a user without production identity access.
Manage these people in the Admin Workspace, or ask an administrator to grant the Production Support role, then retry.
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/identities/value/access?node_id=value" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "items": [ { "permission": "string", "granted_by": [ { "role_id": "string", "role_name": "string", "node_id": "string", "node_name": "string", "access_type": "direct" } ] } ] }
Tell us how we can improve this guide.