Home > @opengovsg/logging > RoleChangedInput
RoleChangedInput interface
Input for UserManagementAudit.roleChanged().
Signature:
typescript
export interface RoleChangedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| newRoles | string[] | The role/permission names after the change. | |
| oldRoles | string[] | The role/permission names before the change. | |
| targetUserId | string | The account whose roles changed. Emitted as context.target_user_id. |