Prevent users from deleting themselves
Problem to solve
In GitLab, a user has the option to delete their own account by going to Settings > Account. When this occurs, the user account is removed from the DB and has all their issues/MRs assigned to Ghost User. This might be problematic for instances with policies in place that require an auditable history for users. Once a user is deleted, there's no way of assigning certain Ghost User activity to a certain removed user.
Proposal
- Introduce an instance level admin setting to prevent non-admin users from being able to delete their own account.
What does success look like, and how can we measure that?
- Non-admins should no longer be able to delete their own account.