Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Single Sign-On Settings entry
How-to guide

Setting up Single Sign-On in Salesforce

Configuring SSO is a multi-step process: prepare My Domain, gather IdP metadata, create the SAML Settings record, configure the IdP side, test the flow, decide on login policy.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated May 16, 2026

Configuring SSO is a multi-step process: prepare My Domain, gather IdP metadata, create the SAML Settings record, configure the IdP side, test the flow, decide on login policy.

  1. Configure My Domain first

    Setup, My Domain. Pick a custom subdomain. Wait for the deployment to complete (typically 24-48 hours). Without My Domain, SSO cannot be configured.

  2. Gather IdP metadata

    From the IdP (Okta, Azure AD), download the SAML metadata XML or copy the entity ID, login URL, and signing certificate.

  3. Create the SAML Settings record

    Setup, Single Sign-On Settings, New from Metadata File or New manual. Upload the IdP metadata or paste the values. Save.

  4. Configure the SP side on the IdP

    Back on the IdP, configure Salesforce as a service provider. Use the Salesforce metadata (entity ID = your My Domain URL, ACS URL = the My Domain SAML endpoint).

  5. Configure attribute mapping and Federation ID

    On the IdP side, configure SAML attributes to include the user's Federation ID (typically email). On the Salesforce side, populate the Federation ID field on each user.

  6. Test the SSO flow

    Use SP-initiated flow: navigate to the My Domain login URL, click the SSO button, complete the IdP login, confirm landing in Salesforce.

  7. Enable Just-in-Time provisioning if needed

    For auto-creation of new users, enable JIT in SSO Settings and configure the SAML attributes for User fields (Username, Email, Profile, etc.).

  8. Set the Login Policy

    Setup, My Domain, Authentication Configuration. Decide whether to require SSO (SSO-only) or allow both. Start with both during rollout; transition to SSO-only after stabilization.

SAML Settings recordremember

The configuration record per IdP, holding entity ID, login URL, certificate, and attribute mapping.

Federation IDremember

The user field that maps to the external identity assertion from the IdP.

Just-in-Time Provisioningremember

Automatic user creation on first SSO login, populating User fields from SAML attributes.

My Domainremember

The custom subdomain required for SSO. Prerequisite for the entire feature.

Login Policyremember

Org-level setting that allows password-only, SSO-only, or mixed-mode authentication.

Identity Provider roleremember

The reverse mode where Salesforce acts as the IdP for other applications, less common than the SP role.

Gotchas
  • My Domain must be configured before SSO. Without it, the SAML configuration cannot be created. Plan for the 24-48 hour My Domain deployment.
  • Certificate rotation on the IdP side breaks SSO until the new certificate is uploaded in Salesforce. Track certificate expiration dates carefully; automate the renewal if possible.
  • Federation ID mismatches between Salesforce users and IdP user identities cause login failures. Audit the mapping during rollout.
  • SSO-only policy locks out all non-SSO logins, including admins. Keep a break-glass admin account that bypasses SSO for emergency access.
  • JIT provisioning relies on correct SAML attribute configuration on the IdP. Missing or malformed attributes break user creation, leaving the user with no Salesforce account.

See the full Single Sign-On Settings entry

Single Sign-On Settings includes the definition, worked example, deep dive, related terms, and a quiz.