Simulate an access control policy decision for an explicit user list
POST/api/v4/access_control_policies/cel/simulate_users
Simulates a draft (unsaved) policy for up to 50 users, with optional per-user session-attribute overrides, using up to 10 of each user's most recent sessions. The draft is evaluated together with persisted higher-scoped permission policies, and the response gives each user an ALLOW or DENY decision per action, with blame for any deny.
Without the manage_system permission, the response leaves out
evaluation trees and protected or profile-hidden attribute values, and
user profiles are sanitized as for any non-admin.
Minimum server version: 11.8
Permissions
Must have the manage_system permission, manage_team_access_rules
on the team in team_id (a channel_id, if given, must be in that
team), or manage_channel_access_rules on the channel in
channel_id. Without manage_system, only members of the channel in
channel_id (or, without one, the team in team_id) can be simulated.
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
Permission policies or policy simulation is disabled, or the license doesn't include attribute-based access control.