Overview
Curated: · Written: · Reviewed:
Identity Lifecycle & Provisioning
In one line
An authoritative HR or partner event creates, changes or removes a person's accounts, groups and entitlements across every target, and then verifies what the person can actually do. Reach for it whenever access must follow employment status, role or contract across many systems.
Key definitions
- Authoritative source: the system that owns a fact, such as HR for status, manager, department and dates.
- Immutable linkage: a stable internal identifier that survives name and email changes. Email and reused employee numbers are not join keys.
- externalId: the client-assigned stable identifier on a SCIM resource. userName is a login attribute, not a matching key.
- Effective access: what the principal can really do at each target, including live sessions, refresh tokens, API keys and local roles.
- Reconciliation: a scheduled comparison of desired and actual state that finds drift push events miss.
- Poison record: an event that fails on every attempt and must be isolated, not retried in place.
Formulas and complexity
Measure exposure from the authoritative event to the last point an effective path is denied. Queue acceptance and connector success do not end the clock.
How it works
The authoritative event is normalized to an internal ID and an effective time. Policy computes desired access from that state. Provisioning applies idempotent changes to each target, then reconciliation compares desired and effective state and routes drift to an owner.
When to use and when not to
| Mechanism | Use it for | Does not cover |
|---|---|---|
| SCIM push or webhook | Low-latency create, update, deactivate | Completeness; accounts created outside the IdP |
| Scheduled reconciliation | Finding orphans, nested-group drift, failed deletes | Speed; it is only as current as its last run |
| Federation logout or token revocation | Ending live sessions and refresh tokens where supported | Targets with local passwords or static API keys |
| Short token and session lifetimes | Bounding exposure where revocation is unsupported | Immediate cut-off |
| Copying a peer's access | Nothing; it recreates unreviewed exceptions | Every case |
Traps interviewers probe
- Treating a 2xx or queue acceptance as done. Fix: verify effective state at the target. A SCIM 204 that leaves a 14-day refresh token alive is not a completed leaver.
- Matching accounts on userName or email. Fix: match on the immutable ID written as externalId. A recycled email is a collision, not a join.
- Deleting the directory row before targets acknowledge deactivation. Fix: disable, confirm each target, and delete on schedule. The row is the correlation you need to find residual accounts.
- Retrying a poison record in place. Fix: bounded retries, dead-letter isolation, and operator replay after re-evaluating the event against current source truth. Otherwise a stale join can resurrect a leaver.
- Assuming a SCIM disable ends sessions. Fix: map each target's account, session, token and local authorization behaviour. Use federation logout or revocation, or shorten lifetimes where neither exists.
Interview tips
Open with: access is the state, not the ticket. The authoritative event starts a chain, and I verify the result at each target.
Follow-ups to expect:
- How do you correlate accounts across systems when names and emails change?
- The target returns 200 with status pending. What now?
- How do you handle a rehire without giving back the old sessions or privileges?
- A leaver's refresh token is still valid after the disable. What do you do?
- How do you replay a dead-lettered leaver safely?
30-second answer outline:
- Name the authoritative source and the immutable ID that links the person across systems.
- Policy computes desired access with effective times, not copied peer access.
- Provision each target idempotently, with bounded retries and a dead-letter path.
- Revoke sessions and tokens alongside the disable, and delete only after targets confirm.
- Reconcile on a schedule, and report time from the leave event to the last denied privileged path.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.