Problem Statement: Identity Lifecycle as a Distributed Coordination Challenge
Frames onboarding as a multi-system identity workflow, not a simple CRUD operation.
Problem statement
Design a secure onboarding portal that automates the complete identity lifecycle for new employees, contractors, and service accounts. When a person joins an organization, the portal must create accounts across every relevant application, assign role-based entitlements, obtain manager and HR approvals, issue ephemeral credentials until identity is fully confirmed, and maintain a tamper-evident audit trail across the entire workflow.
This is not a single-database user-creation problem. A modern enterprise runs 200 to 2,000 SaaS applications, an on-premises Active Directory, cloud identity providers, HR systems, ITSM platforms, and compliance archives. Each has a different API, a different notion of identity, a different consistency model, and a different failure mode. The portal must coordinate all of them as a single durable workflow while guaranteeing that no human ever touches a plaintext credential.
Why this problem is architecturally distinctive
A shopping-cart checkout can tolerate a failed notification. An identity provisioning failure can lock a new hire out of every tool for their first week, or worse, leave a terminated contractor with active production access. The design therefore separates workflow progress from identity correctness. Workflow progress is an eventually-consistent saga that can retry, compensate, and resume. Identity correctness is an invariant: at no point may an account exist in a downstream system without a corresponding approved entitlement record in the portal's source of truth.
The problem statement requires self-service or admin-initiated requests, role-based application assignment, automatic provisioning to identity providers or directories, ephemeral credentials until full confirmation, manager approvals, HR confirmations, and zero manual credential handling. These requirements map directly onto a distributed workflow engine, an entitlement engine, an integration layer speaking SCIM and provider-specific APIs, and a compliance-grade audit pipeline.
The four architectural planes
- Workflow plane: durable orchestration of the onboarding saga from HR trigger through account creation to final confirmation.
- Entitlement plane: role definitions, permission sets, application-to-role mappings, and policy evaluation.
- Integration plane: SCIM connectors, directory sync agents, SSO federation endpoints, and HR system webhooks.
- Governance plane: audit trail, access certification campaigns, anomaly detection, and regulatory reporting.
A strong interview answer keeps these planes separate. The workflow plane may degrade and retry without weakening the entitlement plane's invariants. The governance plane may lag behind provisioning events but must never lose them.
Public operating baseline versus design assumptions
Okta publicly reports managing over 15,000 customers and hundreds of millions of identities through its lifecycle management platform. Microsoft Entra ID reports over one billion identities under management. SailPoint's public materials describe identity governance across enterprises with 100,000+ identities and thousands of applications. These are cited company figures that establish the category is operationally real at scale.
For capacity planning, this answer explicitly assumes a mid-to-large enterprise with 25,000 total identities, 150 new hires per day at steady state, 800 new hires per day during peak hiring seasons, and 400 downstream applications requiring provisioning. Unless a number is tied to a public citation, it is a stated design assumption.
The zero-credential-handling imperative
The brief specifies no manual credential handling. This means the portal never displays, emails, or logs a plaintext password. Instead, it uses one of three patterns: federation-based activation through an existing identity provider, a one-time activation link with cryptographic binding to the user's verified contact channel, or ephemeral scoped credentials issued through a secrets broker with automatic expiry. Each pattern has different security properties and user-experience trade-offs, which we examine in the low-level design.
Key Highlights
- •Onboarding is a distributed coordination problem across 200-2,000 applications, not a single-database insert.
- •Workflow progress is eventually consistent; identity correctness is a hard invariant.
- •Four planes: workflow, entitlement, integration, and governance.
- •Zero-credential-handling means no plaintext password ever appears in a log, email, or UI.
- •Public platform figures from Okta and Entra ID provide context; every uncited scale number here is an explicit assumption.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate workflow orchestration from identity correctness because they have different consistency and failure requirements."
- "Before selecting services, let me define which decisions the workflow engine owns, which the entitlement engine owns, and which require human approval."