The request arrives with a deadline and it sounds reasonable: a list of everyone who had administrative access to the site over the past twelve months, when they gained it, when they lost it, and a record of privileged actions.
Most WordPress sites cannot produce any of it.
The current list, yes — that is the Users screen. But the request is about a *year*, and WordPress keeps no history of role changes. An account promoted in March and demoted in September looks identical today to an account that was never promoted at all. The information was never written down.
What you can and cannot reconstruct after the fact
Worth being clear-eyed about, because the instinct is to try.
Recoverable, partially: registration dates, current roles, post authorship, order history. WordPress and WooCommerce keep these in their own tables and they can be read back into a timeline.
Not recoverable, at all: who was an administrator in March. Who reset whose password. Who was signed in from where. Every role change, every disable, every privileged action that left no other trace.
An import of historical data is genuinely useful — it gives you a customer's or a contributor's timeline, dated, from tables that were being written the whole time. It should be labelled for what it is: reconstructed, from sources that were not designed as evidence, and outside any integrity guarantee that covers records you actually observed. Presenting inference and observation as the same thing is the mistake to avoid, and it is an easy one to make when the auditor just wants a spreadsheet.
So the honest answer to a twelve-month request on a site with no logging is: *we cannot answer for the period before we started recording, and here is the date that starts.* That sentence is worth more than a confident spreadsheet you cannot defend.
What the request is really asking
Under the surface there are four questions, and they need different evidence.
1. Who could do what, and when did that change? Role grants and revocations, dated, with the actor who made the change.
2. What did privileged accounts actually do? Not everything — the privileged actions. Role changes, user creation and deletion, plugin and theme changes, settings changes, credential issuance.
3. How was access removed when people left? Leavers, with evidence that access was actually revoked rather than intended to be.
4. Can any of this be trusted? The question nobody asks out loud, and the one that determines whether the other three mean anything.
Getting it right prospectively
If you are reading this before the request arrives, four things make the answer easy later.
Record the actor, not just the subject
*Role changed: James Okonkwo* is a note. *Role changed: subject James Okonkwo, actor Sarah Whitfield, 14 March, from 198.51.100.71* is evidence.
Any log that keeps one identity per event will fail an audit at exactly the moment an administrator acted on somebody else, which is the case audits are about. This is worth checking on your own site today.
Set retention per category, not globally
One global retention number forces a bad trade. Content events are high-volume and stop being interesting after a month. Account events — who was made an administrator — are exactly what an audit asks about two years later.
Keeping both at 90 days throws away the second to afford the first. Keeping both at three years keeps a mountain of post edits nobody will ever read, and holds personal data longer than you can justify.
Split them: auth and account events long, content short, site events medium.
Export what you filtered, not the whole table
An auditor wants "administrator role changes, 2025". Not 400,000 rows. The export that gets accepted is a filtered one, and the filter is part of the evidence — it should be stated on the document.
Decide what your log actually proves, before you are asked
Here is where most compliance stories quietly fall over.
An activity log stored as ordinary database rows can be edited by anyone with database access, and nothing in the row will indicate it was. If that is your situation, your log is a *record*, not evidence. It is still worth keeping. It just should not be described as tamper-proof, because the first person to ask "how do you know this wasn't edited" will get an unsatisfying answer.
Hash-chaining each entry to the one before it raises the cost of quiet edits from *run an UPDATE* to *own the whole server*. That is a large step and it is not the same as impossible — an attacker with the server has the key.
The useful thing about chaining is not the strength of the claim. It is that verification can distinguish four states, and an honest tool reports all four:
| State | Meaning |
|---|---|
| Verified | Hashes match; the chain is intact |
| Broken | A row was altered or removed outside the tool |
| Purged | Removed by retention, with the purge's own record to prove it |
| Unverifiable | Written before chaining existed, or under a different key |
That fourth state is the one that makes the other three worth anything. A tool that reported "unverifiable" as "verified" would be lying; one that reported it as "broken" would cry wolf on every site that has ever rotated its salts. If your logging tool has no concept of *unverifiable*, ask what it does with rows it cannot check.
One practical warning: the chain key is normally derived from your AUTH_KEY and AUTH_SALT. Rotating salts — which some security plugins do, and some hosts do on migration — changes the key, and everything written before becomes unverifiable from that point. Worth knowing before somebody rotates them on the site whose log you were relying on.
Anchor it, if the claim needs to survive a compromised server
Publishing the chain head somewhere you do not control closes the remaining gap as far as it can be closed. An attacker who owns the server can rewrite the chain; they cannot retract a hash that was already published elsewhere.
It is only as good as the independence of where you publish. An anchor posted to a service on the same server is not an anchor.
The tension nobody can resolve for you
An append-only audit log and a right to erasure pull in opposite directions.
Removing somebody's rows breaks the chain for that range. Keeping them means retaining personal data after a request you may be obliged to honour. There is no configuration that makes this go away, and any vendor claiming otherwise has made the choice for you without saying which way.
What you can do is reduce what you hold in the first place. IP anonymisation at write time — zeroing the last part of each address before it is stored — is a materially smaller processing claim than a full log, and it strengthens the security-log exception most jurisdictions recognise. It is much cheaper to decide on day one than in year two, because it applies to new entries and leaves existing ones alone.
If the request has already arrived
In order:
- Find your start date and say it plainly. "Recording began on 12 June 2025" is a defensible answer. A confident spreadsheet covering a period you were not recording is not.
- Export what you have, filtered to the question, with the filter stated.
- Separate observed from reconstructed. If you import history from WooCommerce or WordPress tables, label it.
- Do not overstate integrity. If your log is ordinary rows, say so.
- Fix it prospectively, so next year's request is a five-minute job — and note that "we identified the gap and closed it" is an answer auditors are used to accepting. "We have always been fine" followed by a gap is not.
The one to fix first
Actor recording. It costs nothing, it cannot be reconstructed later, and it is the single field whose absence turns a year of logs into a year of anonymous events.
Everything else on this page can be improved retrospectively. That one cannot.
—
*ITX UserOps records subject and actor separately on every event and hash-chains each entry to the one before it, in the free plugin — the activity log and tamper evidence, including what the chain does not prove. Per-category retention, chain verification with all four states, scheduled verification, anchoring and GDPR tooling are premium — compliance and historical import.*
