Prompt
Do I need audit logs for consent changes?
Latest observation
Nov 25, 2026
OpenAI APIWeb search: off
Usually, yes — if your system stores or processes user consent, you should keep audit logs of consent changes.
Why:
- Compliance: Regulations like GDPR, ePrivacy, and similar privacy laws often require you to demonstrate when and how consent was given, changed, or withdrawn.
- Proof: If there’s a dispute, audit logs let you show the history of consent status over time.
- Accountability: They help track who changed consent and whether it was the user, an admin, or an automated process.
- Security/operations: They help detect unauthorized changes or bugs.
What to log:
- User/account identifier
- Consent type/category
- Old value and new value
- Timestamp
- Source of change (user action, admin action, API, import, etc.)
- Actor identity, if applicable
- Request/session metadata if relevant
Good practice:
- Make logs append-only and tamper-evident.
- Keep only what you need, and avoid logging sensitive content unnecessarily.
- Apply retention and access controls.
If you want, I can also tell you what this looks like under GDPR, HIPAA, or a typical SaaS privacy policy setup.