Concept 1 of 8Foundations

Authentication vs authorization on Salesforce

Who you are vs what you may do: login methods (passwords with MFA, SSO, social sign-on, passwordless, certificates and tokens) and the authorization layers (licences, permission sets, sharing, OAuth scopes).

Your confidence:Not rated

Simple explanation

Authentication (authN) answers who are you? Authorization (authZ) answers what may you do? Interviewers check you never mix them up.

Authentication options on Salesforce

  • Username and password + MFA (multi-factor authentication is required for direct UI logins).
  • Single sign-on: SAML (enterprise identity providers such as Microsoft Entra ID, Okta, Ping) or OpenID Connect through an Auth. Provider.
  • Social sign-on (Google, Apple, Facebook…) for customers, usually on Experience Cloud.
  • Passwordless / headless login for customer apps (email or SMS one-time codes) βš‘ verify feature names.
  • Certificates and signed tokens for systems: OAuth JWT bearer, client credentials.
  • Delegated authentication (legacy): Salesforce asks your web service to check the password.

Authorization layers (all must allow the action)

  1. Licence and user type (internal, Experience Cloud, integration).
  2. Object and field permissions via permission sets and permission set groups (profiles are being reduced to login settings and defaults).
  3. Record access: org-wide defaults, role hierarchy, sharing rules, teams, territories, manual and Apex sharing.
  4. For API clients: the OAuth scopes granted to the app, and the user it acts as.
  5. Session-based controls: login hours and IP ranges, high-assurance session requirements.

Real-world analogy

At an airport, check-in and passport control prove who you are (authentication). Your boarding pass says which flight and seat you may use, and the lounge invitation grants extra access (authorization). A valid passport doesn't get you into business class.

Worked example

A partner portal user logs in with Microsoft Entra ID through SAML (authN). Once in, a permission set gives read access to Opportunity, external sharing shows only opportunities of their own company, and a field-level setting hides margin (authZ). The partner's integration server uses OAuth JWT bearer with an External Client App (authN for a system), limited to the api scope and acting as an integration user whose permission set allows only Lead creation (authZ).

Diagram

Rendering diagram…

Key points

  • AuthN = identity; AuthZ = permissions. Keep them separate in every answer.
  • AuthN: password + MFA, SAML, OIDC, social sign-on, JWT bearer, client credentials.
  • AuthZ: licence, permission sets (objects and fields), sharing (records), OAuth scopes.
  • SSO moves authentication to the IdP; authorization stays in Salesforce.
  • Integrations authenticate as dedicated integration users with least privilege.
  • Session controls (IP ranges, login hours, high assurance) add context to access.

Limits and gotchas

  • SSO doesn't remove the need for Salesforce user records and permissions (create them up front or with JIT provisioning).
  • MFA applies to direct logins; with SSO, MFA should be enforced at the identity provider.
  • OAuth scopes limit what the token can call, not what data the user sees: permissions and sharing still apply.
  • Admins usually keep a break-glass login (username, password and MFA) in case the IdP is down.

🎀 How to say this in an interview

Many identity questions are really "do you separate authN from authZ?". Answer every scenario in two halves: how the person or system proves who they are, then which layers decide what they can do.

Common follow-ups

If users log in with SSO, do they still need permission sets?

Yes. SSO only proves identity. Salesforce still decides access through licences, permission sets and sharing. JIT provisioning can assign them at first login.

What's a break-glass account?

An admin account that can log in directly (with MFA) when the identity provider is unavailable. It's tightly controlled, monitored and tested periodically.