Problem Statement: Revocation Is a Safety System, Not a Cleanup Script
Frames automated access revocation as a latency-bounded, evidence-producing control plane spanning HR, identity, SaaS, and session layers.
Problem statement
Design an automated access revocation platform that listens to authoritative HR and directory lifecycle events and, without a human ticket, removes or reduces a person's privileges across every connected system: SaaS apps, on-prem applications, cloud consoles, CI/CD, databases, VPN, and physical badge systems. When the trigger is high-risk — termination for cause, an insider-risk alert, or a compromised-credential detection — the platform must also force-terminate live sessions so the window of excess privilege closes in minutes, not days.
The naive version of this problem is a cron job that deletes accounts at midnight. The interview version is harder, because the system must reconcile four realities that fight each other:
- HR truth is slow and lossy. The HR system of record is authoritative for employment intent but frequently wrong about effective time, re-hires, contractors, and partial role changes. A revocation built on a raw HR webhook with no validation will revoke the wrong person eventually.
- Access is federated. Entitlements live in dozens to thousands of downstream systems, each with a different API maturity: SCIM-capable SaaS, legacy on-prem apps with only a database adapter, cloud consoles with IAM policies, and service accounts nobody owns. Revocation is a fan-out problem over unreliable connectors.
- Sessions outlive credentials. Deleting an account does not kill a valid OAuth access token, a cached Kerberos ticket, an active browser SSO session, or a minted API key. Until token lifetimes and session stores are addressed, the person still has access.
- Every action is evidence. Revocation is audited under SOC 2, ISO/IEC 27001:2022 (control A.5.18 on access rights and A.6.5 on post-termination responsibilities), PCI DSS requirement 8 (prompt removal of access on termination), and NIST SP 800-53 controls AC-2 and PS-4. A revocation that cannot be reconstructed — who triggered it, what was removed where, when it completed — fails the audit even if it worked.
Why the problem is distinctive
A notification system can retry tomorrow. A revocation system is measured by the privilege exposure window: the elapsed time between the authoritative decision (termination effective 17:00) and the moment the last privilege, token, and session is gone. That window is the metric an incident review asks about after a disgruntled ex-employee exfiltrates data. The architecture therefore separates three concerns that weaker designs merge:
- Decision plane: ingest, validate, deduplicate, and classify lifecycle triggers into revocation plans with a risk tier and an SLA.
- Execution plane: fan the plan out to connectors, idempotently remove entitlements, kill sessions, and reconcile until the desired state is confirmed.
- Assurance plane: immutable audit, drift detection, certification campaigns, and alerting on anything that exceeds its revocation SLA.
Public operating baseline versus design assumptions
Public evidence shows the category is real. Microsoft documents Continuous Access Evaluation (CAE), where critical account events are pushed to resource providers so session revocation does not wait for token expiry. The Zanzibar paper (USENIX ATC '19) describes Google's global authorization system sustaining tens of trillions of authorization checks per month with single-digit-millisecond medians, which is the read-side complement of revocation. Okta publicly describes SCIM-based deprovisioning, event hooks, and workflow automation for joiner-mover-leaver flows. These are cited references, not requirements for our fictional system.
For capacity planning this answer assumes a mature deployment: 300 enterprise tenants, 4 million managed identities, 150,000 lifecycle events per day, 400,000 concurrent sessions across connected apps, and an average of 14 connected applications per identity. Unless a number is tied to a citation, it is an explicit design assumption.
The four architectural planes
- Trigger plane: HRIS webhooks and syncs (Workday-class systems), directory change notifications, ITSM transitions, risk-engine signals, and manual admin actions.
- Decision plane: correlation to one identity, deduplication, classification into risk tiers, plan generation, and gated approvals.
- Execution plane: connector mesh with idempotent operations, session termination fabric, token epoch advancement, and reconciliation loops.
- Assurance plane: immutable audit ledger, SLA monitors, drift detection, certification, and compliance reporting.
A strong answer keeps the planes separate. The decision plane may degrade or queue; the execution plane must never stop mid-removal; the assurance plane must never lose evidence.
Key Highlights
- •Revocation is measured by the privilege exposure window between the authoritative decision and the confirmed removal of the last privilege, token, and session.
- •HR truth is authoritative for intent but lossy on timing; validation and correlation precede any removal.
- •Deleting accounts does not kill live sessions or unexpired tokens; session termination is a first-class subsystem.
- •Four planes: trigger, decision, execution, assurance. Each degrades differently.
- •Every revocation must be reconstructable for SOC 2, ISO 27001, PCI DSS, and NIST 800-53 review.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate the decision to revoke from the execution of removal, because they have different latency and failure requirements."
- "Before choosing technologies, let me define which layer owns truth: HR for intent, the identity hub for entitlements, and the audit ledger for evidence."