From 344028d3f5b30cea49c5627ce20f8b702c510761 Mon Sep 17 00:00:00 2001 From: Jon Glassman <jglassman@gitlab.com> Date: Thu, 8 Feb 2024 11:55:45 +0000 Subject: [PATCH] Add warning on deleting a user --- doc/user/profile/account/delete_account.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/user/profile/account/delete_account.md b/doc/user/profile/account/delete_account.md index 732de999f7fe6..e3c1989d0f8c6 100644 --- a/doc/user/profile/account/delete_account.md +++ b/doc/user/profile/account/delete_account.md @@ -90,6 +90,9 @@ records are always removed. The deleting associated records option can be requested in the [API](../../../api/users.md#user-deletion) as well as the Admin Area. +WARNING: +User approvals are associated with a user ID. Other user contributions do not have an associated user ID. When you delete a user and their contributions are moved to a "Ghost User", the approval contributions refer to a missing or invalid user ID. Instead of deleting users, consider [blocking](../../../administration/moderate_users.md#block-a-user), [banning](../../../administration/moderate_users.md#ban-a-user), or [deactivating](../../../administration/moderate_users.md#deactivate-a-user) them. + ## Troubleshooting ### Deleting a user results in a PostgreSQL null value error -- GitLab