Skip to content

Home > @opengovsg/logging > AccessDeniedInput

AccessDeniedInput interface ​

Input for FailuresAudit.accessDenied().

Signature:

typescript
export interface AccessDeniedInput extends AuditInputBase

Extends: AuditInputBase

Properties ​

PropertyModifiersTypeDescription
attemptedAction?string(Optional) The action that was attempted, if useful.
reasonstringWhy access was denied, e.g. insufficient_role, not_owner.
resourcestringWhat access was denied to, e.g. /admin, record:r_1.
userId?string(Optional) The acting user, if authenticated (an attempt may be unauthenticated). Promoted to user_id.