Skip to main content

PolicyDecision

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.

type PolicyDecision {
allowed: Boolean!
action: String!
entityId: ID!
}

Fields

PolicyDecision.allowed ● Boolean! non-null scalar {#allowed}

true if the subject is permitted to perform the action; false otherwise.

PolicyDecision.action ● String! non-null scalar {#action}

The action that was evaluated.

PolicyDecision.entityId ● ID! non-null scalar {#entity-id}

The identifier of the entity the action was evaluated against, echoed from the request.

Returned By

evaluatePolicies query ● evaluatePolicy query