Skip to content
Tech Interview Prep
Technical interview guide

Identity Lifecycle & Provisioning

Automating account creation, access changes, and deprovisioning across a person's entire time at an organization.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v6
Editorial status
Reviewed

Scope: SCIM RFC 7643/7644, NIST SP 800-53 Rev. 5 and SP 800-63C-4, current CISA, Microsoft Entra, Google Cloud, AWS IAM Identity Center, Okta, OWASP, and OpenID guidance reviewed 2026-09-04.

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

Leaver exposure=tlast privileged path denied−tauthoritative leave event\text{Leaver exposure} = t_{\text{last privileged path denied}} - t_{\text{authoritative leave event}}

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.

drift Authoritative event from HR or partner Normalize to internal ID and effective time Policy computes desired access Idempotent change per target Reconcile desired vs effective state Remediate and alert owner

When to use and when not to

MechanismUse it forDoes not cover
SCIM push or webhookLow-latency create, update, deactivateCompleteness; accounts created outside the IdP
Scheduled reconciliationFinding orphans, nested-group drift, failed deletesSpeed; it is only as current as its last run
Federation logout or token revocationEnding live sessions and refresh tokens where supportedTargets with local passwords or static API keys
Short token and session lifetimesBounding exposure where revocation is unsupportedImmediate cut-off
Copying a peer's accessNothing; it recreates unreviewed exceptionsEvery case

Traps interviewers probe

  1. 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.
  2. Matching accounts on userName or email. Fix: match on the immutable ID written as externalId. A recycled email is a collision, not a join.
  3. 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.
  4. 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.
  5. 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:

  1. Name the authoritative source and the immutable ID that links the person across systems.
  2. Policy computes desired access with effective times, not copied peer access.
  3. Provision each target idempotently, with bounded retries and a dead-letter path.
  4. Revoke sessions and tokens alongside the disable, and delete only after targets confirm.
  5. 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.