Open the console

Auditing Who Completed Each Onboarding Step

For compliance-sensitive accounts, a checklist's completion state isn't enough on its own. You need a tamper-evident record of who marked each step done, and when.

Auditing Who Completed Each Onboarding Step

A standard onboarding checklist stores one thing per step: done or not done. That's enough for a consumer product, where the only question anyone asks is whether the user finished setting up. It stops being enough the moment an account is regulated, enterprise, or simply big enough that more than one person can touch the same checklist — because now the question isn't just is this step done, it's who marked it done, when, and can we prove it wasn't tampered with afterward.

That second question shows up most often during a security review or a compliance audit, usually from a customer's side rather than yours: a buyer's security team asks for evidence that a required setup step — enabling two-factor auth, confirming a data processing agreement, assigning an admin — was actually completed by an authorized person, not just flipped to true by a script or a support agent clearing a stuck account. If the checklist can't answer that, the completion boolean itself becomes evidence of nothing.

A boolean isn't a record

The failure mode is simple: a `completed` field with no history behind it tells you the current state and nothing about how it got there. If a step was marked done, then un-marked by a bug fix, then marked done again by a different actor, the boolean shows exactly the same thing throughout: true. For most onboarding steps that's fine — nobody needs to know the history of whether someone clicked "invite a teammate." For steps tied to compliance, security configuration, or anything a customer might later dispute, the absence of a history is the actual gap.

What a tamper-evident record needs to hold

The fix isn't a bigger boolean, it's a separate append-only log alongside the step state, with one row per state change rather than one row per step:

type StepEvent struct {
	StepID    string
	AccountID string
	ActorID   string // the user or service account that made the change
	Action    string // "completed", "reopened", "force_completed"
	ActedAt   time.Time
	Source    string // "user_ui", "admin_override", "api", "migration"
}

func RecordStepChange(e StepEvent) error {
	return db.Insert("step_events", e) // never UPDATE, never DELETE
}

The record is append-only by convention and, ideally, by database permission — the service account writing these rows shouldn't have UPDATE or DELETE grants on that table at all, so a bug or a compromised credential can't quietly rewrite history. The current `completed` flag on the step itself is a cache derived from the latest row in this log, not the source of truth. If the two ever disagree, the log wins and the cache gets rebuilt from it.

Distinguish who clicked from who authorized

The actor field matters more than it looks. "A support agent marked this complete on the customer's behalf" and "the account's own admin completed it" are different facts with different evidentiary weight, and conflating them defeats the purpose of logging in the first place. If your support tooling can force-complete a stuck step, that action needs its own distinct value in the log (`force_completed`, `admin_override`) rather than silently writing the same `completed` action a real user action would produce. A reviewer reading the log six months later should be able to tell, without asking anyone, whether a step was genuinely done by the account or pushed through by your own team.

Timestamps need a clock you trust

If the timestamp comes from the client's browser, it can be wrong by accident or wrong on purpose, and either way it's not evidence of anything. Stamp every row with server time at the point the write lands in your database, not whatever time the request claims to have been sent. For accounts spanning time zones, store that server timestamp in UTC and let display formatting handle local time — the stored value should never be ambiguous about when, in absolute terms, the event happened.

Make the log itself exportable, not just internally queryable

An audit log that only your own team can read during a support ticket doesn't satisfy a customer's compliance team; they want to pull it themselves, or get it as a document they can file. The least-effort version of this is a per-account endpoint or admin-panel export that returns the step_events rows for that account as CSV or JSON, scoped to what that account's admins are allowed to see — which usually means their own account's events, not actor identities from your side if those should stay internal. Building the export after the request comes in, under deadline, is worse than building it once as part of the checklist and leaving it idle for the accounts that never ask.

What to measure instead of assuming it's enough

There's no honest benchmark for "how much audit detail is enough" — it depends entirely on which compliance frameworks your customers care about, and that's a question for your sales and legal conversations, not a number to invent here. What you can track on your own: how often the `force_completed` action actually fires, which tells you whether your support team is routinely overriding a step that's badly designed rather than genuinely broken for a specific account. A high override rate on one step is a usability bug wearing an audit log as a disguise.

For the mechanics of what a dismissal versus a completion actually changes in the underlying state, see what a dismissal means, and for getting these events into your own analytics pipeline rather than just this log, piping onboarding events into your analytics covers the setup. The docs describe the webhook payload shape if you want to mirror these events into your own systems as they happen.

Try it on your app