|
| 1 | +# Account anonymization |
| 2 | + |
| 3 | +## Premise |
| 4 | + |
| 5 | +According to the GDPR, companies that record personal data from EU citizens must delete said data if its owner requests its deletion. |
| 6 | +An alternative is to anonymize the data, according to [this article](https://commission.europa.eu/law/law-topic/data-protection/reform/rules-business-and-organisations/dealing-citizens/do-we-always-have-delete-personal-data-if-person-asks_en). |
| 7 | + |
| 8 | +## Definition |
| 9 | + |
| 10 | +### What is Personally identifiable information? |
| 11 | + |
| 12 | +According to [this article](https://commission.europa.eu/law/law-topic/data-protection/reform/what-personal-data_en), Personally identifiable information (PII) is: |
| 13 | + |
| 14 | +- A name and surname. |
| 15 | +- A home address. |
| 16 | +- An email address such as name.surname@company.com. |
| 17 | +- An identification card number. |
| 18 | +- Location data (for example the location data function on a mobile phone). |
| 19 | +- An Internet Protocol (IP) address. |
| 20 | +- A cookie ID. |
| 21 | +- The advertising identifier of your phone. |
| 22 | +- A phone number. |
| 23 | +- Data held by a hospital or doctor, which could be a symbol that uniquely identifies a person. |
| 24 | + |
| 25 | +Out of the box, Dotkernel API saves the user's name (firstname and lastname) and email (identity). |
| 26 | +This personal data is used for emails related to password reset and account activation. |
| 27 | + |
| 28 | +## Process |
| 29 | + |
| 30 | +### Anonymization |
| 31 | + |
| 32 | +The anonymization process makes these replacements: |
| 33 | + |
| 34 | +- The firstname and lastname are replaced with `anonymous` concatenated with the current UNIX timestamp, e.g. `anonymous1725980747`. |
| 35 | +- The email is replaced with `anonymous` concatenated with the current UNIX timestamp and the value in `userAnonymizeAppend`, e.g. `anonymous1725980747@example.com`. |
| 36 | +- The avatar image and its database record are deleted. |
| 37 | + |
| 38 | +The `userAnonymizeAppend` key can be set in `config/autoload/local.php` or left empty. |
| 39 | + |
| 40 | +> Using an email domain for `userAnonymizeAppend` would work as a catch-all email, if your email service provider has this option enabled. |
0 commit comments