Link project_bot user deletion audit event to its resource if possible
Compare changes
@@ -289,12 +289,16 @@
Related to #488166 (closed)
Currently, when deleting user with any user type, GitLab creates user_destroyed
audit event. That audit event is linked to User
. Meaning that only instance admins can see that audit event.
The goal of this MR to allow resource(group/project) owners see user_destroyed
audit events that are related to the resource project_bot user deletion by linking that audit event to the resource if possible.
That MR also
user_destroyed
audit event creation by mentioning reason of the user deletion in the messageuser_destroyed
audit event is created even without current_user
current_user
(when user is deleted from rails console for instance). See !167021 (comment 2137711286)
Before | After |
---|---|
![]() |
![]() |
/audit_events
page. You should see the event about the project_bot deletion with the reason in the message.