Docs / Privacy & Compliance / Access and erasure

Access and erasure

Find the entries of one person to answer a GDPR request for access or erasure.

Access requests

To answer a request for access (GDPR art. 15), find the entries of the person with the context filter:

php
new AuditEntryCriteria(context: ['user_identifier' => 'alice@example.com']);

Filter on the stored value: the truncated IP with anonymize_ip, the digest with the pseudonymisation listener.

The filter does not find:

Erasure

To erase the personal data of a person (GDPR art. 17), delete their entries. The bundle has no erase command: find the entries with the context filter, then delete them in the storage of the output. Do not edit an entry: a changed entry fails audit-log:verify.

GDPR art. 17(3) can let you keep some entries, for example for a legal claim. Decide case by case.

Retention - to delete the entries by age, see Retention.