Onboarding Checklist with SSO Login
What happens to checklist steps when identity comes from a SAML or OIDC provider instead of a local signup form, and how to avoid steps that silently never fire.
A checklist built around your own signup flow usually assumes it knows the user the moment an account row exists: email verified, password set, row created, first step unlocked. SSO breaks that assumption cleanly in half. The user that just completed login via an IdP didn't go through your signup form at all — they were provisioned, or auto-created on first login, by a SAML assertion or an OIDC token your app trusts without the user ever seeing your UI. If the checklist's first step is keyed to \"account created,\" an SSO user starts the product already past step one with no record of ever doing it, and every completion event downstream inherits the same confusion about what actually happened versus what the IdP asserted.
The identity your app has is not the identity the checklist needs
With SSO, the source of truth for who a user is lives at the identity provider, not in your accounts table. Your app gets a subject identifier, maybe an email, maybe a few mapped attributes, on each login — and on first login it typically has to create a local user record to hang anything else off of. That just-in-time provisioning step is the one your checklist logic has to treat as equivalent to signup, because from the checklist's point of view it is: it's the first moment a step can legitimately unlock. Treating it as a no-op, because "the user already existed at the IdP," is how a checklist ends up with steps that silently never fire for an entire tenant.
Attributes the IdP already answered should not become checklist steps
The more common failure runs the other way: a checklist step asks a user to confirm something the IdP already settled before the user ever reached your app — email ownership, name, sometimes even role or department, if those are mapped from SAML attributes or OIDC claims. Showing a verification step for a fact the assertion already carries doesn't just waste a step slot, it reads as the product not having noticed its own login flow. The fix is to mark certain steps as satisfied at provisioning time, driven by which attributes actually arrived on the assertion, rather than rendering them as pending and waiting for a click that will never meaningfully happen.
type IdentityAssertion struct {
Subject string
Email string
Attrs map[string]string // mapped SAML attributes / OIDC claims
}
func stepsSatisfiedAtProvisioning(a IdentityAssertion) []string {
satisfied := []string{}
if a.Email != "" {
satisfied = append(satisfied, "verify-email") // the IdP already verified it
}
if _, ok := a.Attrs["department"]; ok {
satisfied = append(satisfied, "set-department")
}
return satisfied
}Run that mapping once, at the moment the local user record is created from the assertion, and write the resulting completions with a distinct source value — source: "sso-provisioning" rather than source: "user-action" — so a later report doesn't credit the checklist UI with work the IdP actually did.
Group and role claims can unlock steps a self-signup user never sees
SAML and OIDC assertions often carry group or role claims that a self-service signup has no equivalent for: "admin," "billing-contact," "engineering." If your checklist already branches by role — something covered in per-role setup steps — the SSO path is where that branching has to be driven by the assertion's claims instead of a choice made inside your own UI, because for an SSO user there usually isn't a role picker to show. Map claim values to the same role identifiers your permission-based steps already key off of, so the two systems don't end up with two different ideas of what "admin" means.
What breaks when provisioning happens outside a request
Some SSO setups provision users ahead of first login — SCIM push from the IdP, a batch sync, an admin pre-creating seats before anyone logs in. In that case there's no login request to hang step unlocks off of at all; the account exists with no session ever having touched it. A checklist that only evaluates steps during an authenticated request will never run the provisioning-time logic above for these accounts, and they'll sit with every step pending indefinitely, even the ones a SCIM payload already answered. Run the same satisfied-at-provisioning mapping from the SCIM handler itself, not just the login handler, so both provisioning paths produce the same step state.
Deprovisioning is the other half of the same problem
An IdP can also revoke access — SCIM deactivation, a group removal, an assertion that stops arriving. Checklist progress tied to a user who's been deprovisioned shouldn't just sit there as if nothing happened, because a later re-provisioning of the "same" person (new SCIM push, new SAML subject if the IdP reissues identifiers) may or may not be the same local user record your checklist has history for. Decide explicitly whether progress survives a deprovision/reprovision cycle before it happens by accident; don't let the answer be whatever the foreign-key constraints allow.
What to measure
Whether SSO users actually complete checklists at a different rate than self-signup users isn't a number to guess at — it depends on step-completion events carrying a source tag per account, covered in piping checklist events into your analytics, segmented by whether the account was provisioned via SSO or local signup. Until that segmentation exists, any claim about SSO users finishing onboarding faster or slower is a guess dressed as a metric. Instrument the split first.
See the docs for the current provisioning hooks available on login and SCIM events.