# Feature - User and Group Deletion Handling

**URL:** https://discussions.eramba.org/t/feature-user-and-group-deletion-handling/3541
**Category:** Forum - Software
**Created:** [August 18, 2023, 5:51am UTC](https://discussions.eramba.org/t/feature-user-and-group-deletion-handling/3541 "2023-08-18T05:51:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://discussions.eramba.org/u/sam)
#### Post date: [August 18, 2023, 5:51am UTC](https://discussions.eramba.org/t/feature-user-and-group-deletion-handling/3541/1 "2023-08-18T05:51:01Z")

</div>

The way we handle user/group deletion could be improved:

**The Problem with the Old Process**

Previously, if you tried to delete a user or group that had items assigned to them, Eramba would block the deletion with a warning. You would then need to manually find every reference and unassign them.

 ![image](https://discussions.eramba.org/uploads/default/original/2X/3/30e59b3f4709d8dd15cf2519685fc6875cb71fc3.jpeg)

**How the New Inheritance Feature Works**

With the new feature, when you delete a user or group that still has assignments, Eramba will let you choose a replacement, either another user or another group to automatically inherit those assignments.

The inheritance applies to:

- Items where the user/group was assigned in a role field
- Views and reports created by user
- Notifications

When triggered, you’ll see a dropdown where you select the inheriting user or group.

 ![image](https://discussions.eramba.org/uploads/default/original/2X/4/415509d3c77c1aea82fc8a9412bcdb9b3dfaccf6.png)

**Special Handling**

We’ve also ensured the change covers:

- Records in comments and attachments  

- Entries in the activity log  

**Notes**

- If a user or group is not assigned anywhere, the inheritance logic will not apply.
- Groups must still be empty before deletion.
- Access control settings are not inherited.

**Related:**

- ref: [Feature - deletion account delegation](https://discussions.eramba.org/t/feature-deletion-account-delegation/2315)

- When a user is deleted we are apparently deleting their comments too, this should not happen.  
ref: [Bug - Deleting users also deletes comments](https://discussions.eramba.org/t/bug-deleting-users-also-deletes-comments/3537)

int. ref: [https://github.com/eramba/eramba/issues/4388](https://github.com/eramba/eramba/issues/4388)

---

<div class="post-metadata">

### Author: ![sam](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://discussions.eramba.org/u/sam)
#### Post date: [August 18, 2023, 5:51am UTC](https://discussions.eramba.org/t/feature-user-and-group-deletion-handling/3541/2 "2023-08-18T05:51:07Z")

</div>



---

<div class="post-metadata">

### Author: ![kisero](https://discussions.eramba.org/user_avatar/discussions.eramba.org/kisero/32/2925_2.png) [@kisero](https://discussions.eramba.org/u/kisero)
#### Post date: [August 18, 2023, 7:38am UTC](https://discussions.eramba.org/t/feature-user-and-group-deletion-handling/3541/3 "2023-08-18T07:38:05Z")

</div>


