Skip to content

role_override_set

This page is auto-generated from src/admin/routes.ts. Do not edit by hand — see docs/dev/docs-auto-sync.md.

role_override_set

FunctionSource
encodeRoleOverrideAuditReasonsrc/admin/routes.ts:493
FieldTypeRequiredNotes
rolevalueyes
capabilityvalueyes
effectvalueyes
prev_effectvalueyes
by_user_idvalueyes

This envelope is stored in audit_log.decision_reason (varchar(256)) as a JSON object with the shape { event, ...ctx }. The audit_log row carries tenant_id, actor_user_id, and timestamp as columns alongside — those are not duplicated in the envelope.

Provenance: This envelope is emitted via a shared helper at the call site — the field types in the table above are inferred from the call-site object literal rather than a TypeScript interface. Treat the type column as best-effort.