Bulk Authorization Check
Check multiple actions on one protected object in one call.
POST /authz/check/bulk
Check whether an entity can perform multiple actions on one protected object in a single request. Avoids N round-trips when a UI needs to render permission-dependent buttons.
Request
| Field | Type | Required | Description |
|---|---|---|---|
subjectId | UUID | Yes | The entity attempting the actions |
objectKind | string | Yes | Protected object kind, such as resource, entity, or tenant |
objectId | UUID | Yes | Protected object ID |
actions | string[] | Yes | Action names to check (max 20) |
context | object | No | Additional ABAC context (default {}) |
Response
Each key in results maps to the same {allowed, reason} shape as POST /authz/check.
Validation
actionsmust contain 1 to 20 entries.- Duplicates are deduplicated — each action appears once in the response.
- Unknown actions return
{ "allowed": false, "reason": "unknown action '<name>'" }. - Known but inapplicable actions return denied for that action.
Performance
Entity, target object, role assignments, direct policies, and permission blocks are loaded once. Each action is resolved, checked through Action Applicability, and evaluated against the same effective permission set. This turns N database round-trips into a small fixed set of queries.