Simulate an access control policy decision for an explicit user list
POST/api/v4/access_control_policies/cel/simulate_users
Runs the dual-lane PDP simulation against a draft (unsaved) access control policy for an explicit set of users (with optional per-user session-attribute overrides). The server compiles the draft in-memory, layers on persisted higher-scoped permission policies, and returns per-user, per-action ALLOW/DENY decisions plus blame attribution for any deny.
Backs the picker-driven “Simulate access” UX in the System Console and Channel Settings so authors can see how a draft interacts with persisted higher-scoped policies before saving.
Gated by the PermissionPolicies feature flag and the Enterprise
Advanced license. Returns 501 (Not Implemented) when either is
missing.
Permissions
Must have the manage_system permission, OR be a team admin with
manage_team_access_rules on the request's team_id (when any
provided channel_id resolves to a channel in that team), OR be a
channel admin with manage_channel_access_rules on the request's
channel_id.
Request
Responses
- 200
- 400
- 401
- 403
- 500
- 501
Per-user, per-action simulation results.
Invalid or missing parameters in URL or request body
No access token provided
Do not have appropriate permissions
Something went wrong with the server
Feature is disabled