Problem/Motivation

User role history isn't removed after permanently deleting user account(s). Possibly missing on the 8.x version but not confirmed. As data privacy laws and policies become stricter it's important to assume permanent deletion includes all identifying user information.

Proposed resolution

Implement hook_user_delete() to remove {role_watchdog} table records for the deleted user account.

Comments

gaurav.kapoor created an issue. See original summary.

  • gaurav.kapoor authored 9fdc7af on 8.x-1.x
    Issue #3254885 by gaurav.kapoor: Role history not removed after user...
gaurav.kapoor’s picture

Status: Needs review » Fixed

Added implementation in the hook entity delete to delete all the role watchdog entities created for a user whose account is getting deleted.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.