Identity architecture: IdP or SP, multi-org, customers and provisioning
Designing identity across an estate: Salesforce as service provider or identity provider, multi-org SSO, workforce vs customer identity, provisioning and deprovisioning, and resilience.
Simple explanation
Decide the identity source per population
| Population | Usual identity source | Salesforce role |
|---|---|---|
| Employees | Corporate IdP (Entra ID, Okta, Ping) | Service provider (SAML or OIDC) |
| Partners | Partner's own IdP, or Salesforce | SP with per-partner IdPs, or Salesforce as identity store |
| Customers | Salesforce (Experience Cloud), social providers or a CIAM product | Identity provider for portal and apps, or SP to a CIAM |
| Systems | Certificates and OAuth clients | Authorization server (JWT bearer, client credentials) |
Salesforce as identity provider: Salesforce can issue SAML assertions or OIDC tokens to other apps, so a customer who has a portal login can use it for other company apps. This is common when Experience Cloud is the customer front door.
Multi-org estates: one corporate IdP for all orgs (simplest); Federation ID consistent across orgs; cross-org navigation with SSO; avoid using one Salesforce org as the IdP for the others unless there's a strong reason.
Lifecycle: provisioning (SCIM, JIT, or HR-driven automation), role and permission assignment from attributes, and deprovisioning that deactivates users promptly (a security and licence issue).
Resilience: what happens if the IdP is down? Break-glass admin access, and for customers, a fallback login method.
Real-world analogy
An identity architecture is a city's ID system. Residents use their national ID card (corporate IdP) everywhere. Tourists get a visitor pass from the tourist office (customer identity). Delivery companies get vehicle permits (OAuth clients). The design question is who issues which document, who checks it, and how lost or expired documents are cancelled.
Worked example
A bank with an internal Salesforce org, a customer portal and a mobile app:
- Employees: Entra ID β SAML SSO into the internal org; SCIM provisioning and deactivation from Entra; permission set groups from department attributes.
- Customers: the Experience Cloud site is the identity provider for the portal and the mobile app (OIDC, web server flow with PKCE in the app), with passwordless login and MFA for sensitive actions.
- Systems: core banking middleware uses JWT bearer with an External Client App and an integration user.
- Resilience: break-glass admins; IdP certificate rotation runbook; monitoring of failed logins.
Diagram
Key points
- Decide the identity source per population: employees, partners, customers, systems.
- Salesforce as SP for workforce, often IdP for customers (Experience Cloud).
- Multi-org: one corporate IdP, consistent Federation ID.
- Provisioning and deprovisioning (SCIM, JIT, HR feeds) are part of the design.
- Plan resilience: break-glass, certificate rotation, IdP outages.
- Systems use OAuth server-to-server flows, not shared human accounts.
Limits and gotchas
- JIT-only designs leave orphaned active users when people leave.
- Several IdPs on one login page need clear routing (by domain, buttons, or separate URLs).
- Customer identity at scale has licensing and performance implications; some organisations use a dedicated CIAM product with Salesforce as SP β verify current options.
- Changing Federation IDs breaks SSO for affected users; treat them as stable keys.
π€ How to say this in an interview
CTA-style identity questions want a table by population and a clear statement of who is IdP, who is SP, how users are provisioned and deprovisioned, and what happens when the IdP fails.
Common follow-ups
Should one Salesforce org be the IdP for your other Salesforce orgs?
Usually not: if the corporate IdP already exists, federate all orgs to it. Using an org as IdP couples availability and admin of all orgs to one org. It can make sense for customer identity shared across orgs.
How fast should deprovisioning be?
Within the organisation's security policy, often same day or immediately for terminations. Automated deactivation from the IdP or HR system, plus session revocation, is the norm.