Home > @opengovsg/logging > AccessDeniedInput
AccessDeniedInput interface
Input for FailuresAudit.accessDenied().
Signature:
typescript
export interface AccessDeniedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| attemptedAction? | string | (Optional) The action that was attempted, if useful. | |
| reason | string | Why access was denied, e.g. insufficient_role, not_owner. | |
| resource | string | What 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. |