# Bug OP-10064 - Deleted users are not properly anonymized in tagged messages

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-10064

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.2.0 |
| Observed in versions |  |
| Sprint | 12.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

OP production (12.0.10)

qa-edge (12.1.0)

### **Steps to reproduce:**

1.  Have a user A that is tagged in a work package comment via &quot;@&quot;
2.  Delete user A.
3.  Have a look at the message in which user A was tagged.

### **Actual Behavior**

*   The name of the user is still shown in all tagged messages

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30008/content"></div></figure>

*   when editing the comment, the user is even linked (leads to 404)

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30009/content"></div></figure>

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30010/content"></div></figure>

*   In other places the user name is correctly anonymised (e.g. when the deleted user is the author of a comment himself)

### **Expected Behavior**

For proper compliance with GDPR:

*   The user name is changed to &quot;Deleted user&quot; in all tagged messages
*   When editing a comment, there should also be written &quot;@Deleted user&quot; and the link is removed
