Skip to main content

evaluatePolicies

Evaluate multiple (action, entityId) permissions in a single request. The list of checks is capped at 10 entries.

Decisions are returned in the same order as checks. Each decision echoes its inputs so callers can correlate without relying on positional indices. Same not-found / cross-org behavior as evaluatePolicy. If any check references an action outside the policy catalog (or one that can't be evaluated against an id) the whole request returns a NOT_FOUND error.

evaluatePolicies(
organizationId: ID!
checks: [PolicyDecisionInput!]!
): [PolicyDecision!]!

Arguments

evaluatePolicies.organizationId ● ID! non-null scalar {#organization-id}

Your organization's unique identifier.

evaluatePolicies.checks ● [PolicyDecisionInput!]! non-null input {#checks}

The list of permissions to evaluate. Capped at 10 entries.

Type

PolicyDecision object

The decision returned by an evaluatePolicy request.

action and entityId mirror the inputs so batch callers can correlate decisions with their original questions without tracking positions externally.