CertSafari
    Snowflake SnowPro Advanced: Administrator (ADA-C02)· Lessons

    Domain 1 · Lesson 5/24

    Snowflake SSO, user types and MFA

    Set up and manage Snowflake authentication.

    18 min read
    4.43% of exam
    9 sources
    Published 20 Oct 2026
    Docs as of 18 Oct 2026

    What you will be able to do

    • Configure an IdP and a SAML2 security integration so users can sign in to Snowflake through SSO, including an SSO button on the login page
    • Block password sign-in for federated users while keeping a break-glass administrator
    • Choose and change a user's TYPE and predict which authentication methods it leaves available
    • Enforce MFA enrollment, restrict MFA methods, recover users who lost a second factor, and report on how users sign in

    Key concept

    User type decides the authentication methods — Every Snowflake user is either a person, who signs in interactively with SSO or a password plus MFA, or a service, which has no interactive sign-in and authenticates with a key pair, a token or OAuth. Each authentication control on this page applies to one side of that split.

    1.Snowflake as the service provider in federated sign-in

    Federated authentication separates proving who someone is from giving them access. In a Snowflake federation, Snowflake is the service provider (SP). An external identity provider (IdP) stores the credentials and authenticates the user. Snowflake trusts the IdP's assertion and opens a session. This is how single sign-on (SSO) works: the user signs in once at the IdP and reaches Snowflake without a Snowflake password.

    Snowflake supports two kinds of federation security integration: SAML 2.0 and OpenID Connect (OIDC). Okta and Microsoft Entra ID support Snowflake natively. Other SAML 2.0-compliant IdPs, such as Google Workspace, OneLogin or Ping Identity PingOne, work once you define a custom application for Snowflake in the IdP. The table shows where the two protocols differ.

    SAML 2.0 and OIDC federation compared
    AspectSAML 2.0OIDC
    Integration typeTYPE = SAML2TYPE = OIDC
    Token formatXML assertionJWT (JSON Web Token)
    Credential typeX.509 certificateClient ID + Client Secret
    Managed providersNoneGoogle, Microsoft
    Driver SSO with authenticator=externalbrowserSupportedNot supported (use authenticator=OAUTH_AUTHORIZATION_CODE)
    Authentication-policy methodAUTHENTICATION_METHODS = ('SAML')AUTHENTICATION_METHODS = ('OIDC')

    You configure the IdP first, and two choices made there must match Snowflake later. The first is identity mapping. Every IdP user needs an email address, and in Okta that address must map to the Snowflake user's login_name and to the SAML NameID. Suppose the IdP asserts jsmith@corp.com but the Snowflake user was created with LOGIN_NAME = 'jsmith'. That user cannot sign in until the two values agree. The second choice is the URL users reach Snowflake through. With private connectivity, Okta's SubDomain field takes the account identifier with privatelink appended (myorg-myaccount.privatelink). If the account name contains an underscore, replace it with a hyphen, because Okta does not accept underscores in URLs. In AD FS the same choice appears as the relying party SSO service URL: the account URL with /fed/login appended.

    Snowflake then needs the IdP's details. The preferred way to supply them is the IdP's metadata URL. In Okta you copy it from the SAML 2.0 tile on the Sign On tab; in AD FS it is the Federation metadata document field. You can instead enter the SSO URL and the IdP certificate as separate values. That is error-prone, and you have to update them by hand whenever the IdP rotates its certificate.

    Checkpoint 1 of 9· Check yourself

    An administrator sets up Okta SAML SSO for Snowflake. Okta asserts the user as jsmith@corp.com, but the Snowflake user was created with LOGIN_NAME = 'jsmith'. Okta authenticates the user successfully, yet Snowflake will not open a session. What fixes this?

    Sources12

    2.Creating the SAML2 security integration

    The SAML2 security integration is Snowflake's side of the trust. You create it with CREATE SECURITY INTEGRATION and TYPE = SAML2. It replaces the deprecated SAML_IDENTITY_PROVIDER account parameter, which still works but should be migrated. The example below is for an account reached through private connectivity, so both Snowflake URLs use the privatelink hostname. An account on a public URL would use its public URL in both places.

    A SAML2 integration that reads Okta's metadata URL, for an account reached through private connectivitysql
    CREATE SECURITY INTEGRATION my_idp
      TYPE = saml2
      ENABLED = true
      METADATA_URL = 'https://integrator-26580.okta.com/app/ex2kbcS30N697/sso/saml/metadata'
      SAML2_SNOWFLAKE_ISSUER_URL = 'https://<orgname>-<account_name>.privatelink.snowflakecomputing.com'
      SAML2_SNOWFLAKE_ACS_URL = 'https://<orgname>-<account_name>.privatelink.snowflakecomputing.com/fed/login';

    Two properties hold the account URL the IdP was configured with: SAML2_SNOWFLAKE_ISSUER_URL, and SAML2_SNOWFLAKE_ACS_URL, which adds /fed/login. If you omit them, both default to the account's legacy URL. Sign-in then fails if the IdP was set up with an account-name or privatelink URL. Because METADATA_URL is set, ALTER SECURITY INTEGRATION ... REFRESH METADATA_URL loads a rotated IdP certificate without changing any parameter.

    An IdP button on the Snowflake login page is Snowflake-initiated SSO, and it stays off until you enable it. SAML2_ENABLE_SP_INITIATED turns it on, and SAML2_SP_INITIATED_LOGIN_PAGE_LABEL sets the button's text. IdP-initiated SSO, where users launch Snowflake from an IdP portal, needs no Snowflake configuration.

    Turning on Snowflake-initiated SSO and labelling the login-page buttonsql
    ALTER SECURITY INTEGRATION my_idp SET SAML2_ENABLE_SP_INITIATED = true;
    ALTER SECURITY INTEGRATION my_idp SET SAML2_SP_INITIATED_LOGIN_PAGE_LABEL = 'My IdP';

    The integration also holds Snowflake's own certificate, SAML2_SNOWFLAKE_X509_CERT, which you can read with DESC SECURITY INTEGRATION. Upload it to the IdP as the encryption certificate and the IdP encrypts its assertions, which only Snowflake's private key can decrypt. Set SAML2_SIGN_REQUEST = true and the IdP can use the same certificate to check that requests really come from Snowflake. The certificate is self-signed by default. If your policy requires a CA-issued certificate, SYSTEM$GENERATE_SAML_CSR produces the signing request. SAML2_REQUESTED_NAMEID_FORMAT sets the NameID format Snowflake requests. The default is urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress.

    Checkpoint 2 of 9· Fill the gap

    Users should see an 'My IdP' button on the Snowflake login page so they can start SSO from Snowflake. Which property completes the first statement?

    ALTER SECURITY INTEGRATION my_idp SET  ?  = true;
    ALTER SECURITY INTEGRATION my_idp SET SAML2_SP_INITIATED_LOGIN_PAGE_LABEL = 'My IdP';

    Checkpoint 3 of 9· Exam question

    Your company uses Okta as its identity provider. As the account administrator you must let employees sign in from the Snowflake login page with an Okta SSO button. Which approach is the MOST appropriate?

    Sources3

    3.SSO logins, logouts and client connections

    A login can start at either end. In a Snowflake-initiated login, the user opens the Snowflake web interface, chooses the IdP, authenticates there, and the IdP sends a SAML response back to Snowflake. In an IdP-initiated login, the user authenticates at the IdP first and then selects the Snowflake application. Both end with a SAML response that opens a Snowflake session.

    Logout works differently depending on where it starts. Every IdP supports standard logout, where the user must log out of both the IdP and Snowflake to disconnect fully. Global logout, where leaving the IdP also ends every Snowflake session, depends on the IdP. Logging out from Snowflake never triggers global logout. It ends that one session, and the other sessions and the IdP session stay open, so the user can start new sessions without authenticating again.

    Drivers and CLIs use SSO in one of two ways. Browser-based SSO sets the authenticator option to externalbrowser, for example authenticator='externalbrowser' in the Python connector's connect() call. The client then opens the user's browser at the IdP's sign-in page. Users enrolled in Snowflake MFA also confirm their second factor during this step. Browser-based SSO needs a browser on the same machine, so it fails for code running on a server. With Okta, you can use native SSO instead: set authenticator to the Okta URL, https://<okta_account_name>.okta.com. Native SSO needs no browser, but Okta MFA must be disabled for that user.

    By default, every new connection prompts the user again. An account administrator can run ALTER ACCOUNT SET ALLOW_ID_TOKEN = true. Supported drivers then cache a connection token in the operating system's keystore and reuse it for later connections.

    Checkpoint 4 of 9· Check yourself

    A nightly Python job runs on a headless Linux server and must connect to Snowflake as a federated user whose IdP is Okta. No one is at the machine to use a browser. Which connection setup works?

    Sources14

    4.Passwords alongside SSO and the break-glass administrator

    Turning on federation does not turn off Snowflake passwords. Administrators can still create users with passwords, and those users can still sign in with them, so every account keeps a second way in. Snowflake recommends keeping passwords only in the IdP and disabling Snowflake authentication for all non-administrator users.

    There are two ways to close that second way in. The first is to remove the password. A user created without a password, or altered to remove it, can only sign in through federation. Snowsight can't do this, because it requires a password when you create a user, so use CREATE USER or ALTER USER. The second is an authentication policy set on the account whose AUTHENTICATION_METHODS lists only 'SAML'. It blocks password sign-in whether or not passwords are stored.

    With either approach, keep at least one account administrator who can sign in with a Snowflake password, so someone can still fix federation if the IdP is down. With policies, you do this by creating a second authentication policy that allows 'PASSWORD' and attaching it to the break-glass user with ALTER USER ... SET AUTHENTICATION POLICY. A policy set on a user takes precedence over the account's policy for that user. MUST_CHANGE_PASSWORD has no effect on federated sign-in and should be FALSE for users without Snowflake passwords, so it can never be what enforces SSO.

    Disabling or dropping a user in Snowflake does not affect the IdP. The person can still sign in to Okta but gets an error when they connect to Snowflake. They can sign in again only after you re-enable or re-create the user.

    Checkpoint 5 of 9· Check yourself

    After SAML SSO goes live, a security lead wants every non-administrator to be unable to sign in with a Snowflake password. They also want the account to stay manageable if the IdP has an outage. Which plan meets both goals?

    Checkpoint 6 of 9· Exam question

    A company federates all employees through SAML SSO and wants password sign-in blocked for everyone. One break-glass administrator must still be able to sign in with a password if the IdP is down. What is the BEST way to meet both needs?

    Sources415

    5.User types: PERSON, NULL and SERVICE

    The TYPE property records whether a user object is a person or a service, and that decides which sign-in methods it can use. The distinction matters because a person can respond to an MFA prompt and a service has no one to respond.

    What each TYPE value allows
    TYPERepresentsPassword sign-inMFA
    PERSONA human user who interacts with SnowflakeAllowedEnrolls in MFA
    NULLFunctions the same as PERSONAllowedEnrolls in MFA
    SERVICEA service or application with no human interactionNot allowed; cannot have PASSWORD or MUST_CHANGE_PASSWORDCannot enroll; not subject to authentication policy MFA enforcement; cannot have MINS_TO_BYPASS_MFA
    LEGACY_SERVICEA non-interactive integration, being deprecatedAllowedNot applicable

    You change an existing user's type with ALTER USER; you don't need to re-create the user. When you set TYPE = SERVICE, properties a service can't have, including PASSWORD, stay stored. DESCRIBE USER no longer shows them and you can't set them, so the old password does not keep working as a fallback. Set the user back to PERSON and those properties come back, password included. You can't set TYPE to NULL on an existing user. ALTER USER ... RESET PASSWORD and ALTER USER ... SET DISABLE_MFA = TRUE are both rejected for a SERVICE user.

    A SERVICE user cannot use a password, MFA or SSO, so it has no interactive sign-in. It connects through drivers and APIs with a key pair, a programmatic access token or OAuth. LEGACY_SERVICE still allows a password as a transition step, but it is deprecated: in the final phase of Snowflake's rollout, every LEGACY_SERVICE user is migrated to SERVICE and blocked from password authentication.

    Checkpoint 7 of 9· Check yourself

    For a data-loading application that connects through the JDBC driver with no human present, the security team wants a long-term setup: no MFA prompts and no password that could be phished. How should the application's Snowflake user be set up?

    Checkpoint 8 of 9· Exam question

    A data engineering team converts an existing ETL account to TYPE = SERVICE with ALTER USER. Select TWO statements that are true for this user after the change.(Select 2)

    0 of 2 selected

    Sources657

    6.MFA enrollment, methods and recovery

    MFA adds a second factor after the password, and it is meant for human users who sign in with one. Whether it is mandatory depends on when the account was created. In accounts created after the 2024_08 behavior change bundle was enabled, every human user who signs in with a password must enroll. In older accounts, you require it by configuring an authentication policy. A newer account can opt out with a custom authentication policy that sets MFA_ENROLLMENT=OPTIONAL on the account. Password sign-ins to Snowsight still require MFA, and the opt-out is only temporary, because Snowflake is phasing out single-factor password sign-ins for all human users.

    SSO users are handled separately. By default, Snowflake leaves MFA to the IdP. To require Snowflake MFA after the IdP has authenticated someone, add MFA_POLICY=(ENFORCE_MFA_ON_EXTERNAL_AUTHENTICATION='ALL') to an authentication policy:

    An authentication policy that also requires Snowflake MFA after SAML or OIDC sign-insql
    CREATE AUTHENTICATION POLICY ACCOUNTADMIN_DOUBLE_MFA
      AUTHENTICATION_METHODS = ('PASSWORD', 'SAML', 'OIDC')
      SECURITY_INTEGRATIONS = ('<SAML OR OIDC SECURITY INTEGRATIONS>')
      MFA_ENROLLMENT = 'REQUIRED'
      MFA_POLICY=(ENFORCE_MFA_ON_EXTERNAL_AUTHENTICATION='ALL');

    Three methods can serve as the second factor: a passkey, an authenticator app that generates a time-based one-time passcode (TOTP), or Duo. Snowflake recommends passkeys. Duo is not replicated the way the other methods are. ALLOWED_METHODS limits which methods users can choose. If a user's existing method is no longer allowed, they sign in with it one more time and are then prompted to add an allowed method.

    Requiring MFA while allowing only passkeys and authenticator appssql
    CREATE AUTHENTICATION POLICY mfa_policy
      MFA_ENROLLMENT = REQUIRED
      MFA_POLICY = (ALLOWED_METHODS = ('PASSKEY', 'TOTP'));

    You recover users one at a time, with ALTER USER. ALTER USER ... RESET PASSWORD handles a forgotten password. For a lost MFA device, use DISABLE_MFA = TRUE. Its effect depends on how the user enrolled. If a policy requires MFA, it clears the user's MFA methods, and they must add a new one at their next sign-in. If they enrolled voluntarily, it lets them sign in without a second factor. MINS_TO_BYPASS_MFA lets a user skip MFA for a set number of minutes. Password policies attach the same way as authentication policies, to the account or to a single user with ALTER USER ... SET PASSWORD POLICY.

    To report on MFA coverage, start from the login history. The LOGIN_HISTORY and LOGIN_HISTORY_BY_USER table functions and the LOGIN_HISTORY view record each sign-in attempt and its authentication factors, starting with FIRST_AUTHENTICATION_FACTOR. Limit the report to PERSON and NULL users. SERVICE users cannot enroll in MFA, so they never show up as gaps.

    Checkpoint 9 of 9· Fill the gap

    Your company's SAML IdP already authenticates the account administrators. A security review asks for these administrators to also pass Snowflake's own MFA after the IdP signs them in. Which MFA_POLICY setting completes this authentication policy?

    CREATE AUTHENTICATION POLICY ACCOUNTADMIN_DOUBLE_MFA
      AUTHENTICATION_METHODS = ('PASSWORD', 'SAML', 'OIDC')
      SECURITY_INTEGRATIONS = ('<SAML OR OIDC SECURITY INTEGRATIONS>')
      MFA_ENROLLMENT = 'REQUIRED'
      MFA_POLICY=( ? ='ALL');

    Sources758

    Sources

    (9)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “In a Snowflake federated environment, Snowflake serves as the SP.”
      ↩︎ Snowflake as the service provider in federated sign-in
      “To use an IdP other than Okta or Entra ID, you must define a custom application for Snowflake in the IdP.”
      ↩︎ Snowflake as the service provider in federated sign-in
      “Global logout is not supported from within Snowflake, regardless of whether the IdP supports it.”
      ↩︎ SSO logins, logouts and client connections
      “Authentication-policy support | AUTHENTICATION_METHODS = ('OIDC') | AUTHENTICATION_METHODS = ('SAML')”
      ↩︎ Passwords alongside SSO and the break-glass administrator
      “Global logout is not supported from within Snowflake, regardless of whether the IdP supports it.”
      ↩︎ Exam trap 2
    2. 2.
      “ensure the email address you enter in Okta maps to the login_name value of the user object in Snowflake”
      ↩︎ Snowflake as the service provider in federated sign-in
      “If you are using private connectivity, append privatelink to the account identifier.”
      ↩︎ Snowflake as the service provider in federated sign-in
      “ensure the email address you enter in Okta maps to the login_name value of the user object in Snowflake and the SAML NameID attribute”
      ↩︎ Checkpoint
    3. 3.
      “A SAML2 security integration replaces the deprecated SAML_IDENTITY_PROVIDER account parameter.”
      ↩︎ Creating the SAML2 security integration
      “The SAML2_ENABLE_SP_INITIATED property enables Snowflake-initiated SSO.”
      ↩︎ Creating the SAML2 security integration
      “Snowflake uses the metadata URL to dynamically obtain the IdP’s configuration settings, including its certificate.”
      ↩︎ Creating the SAML2 security integration
      “If the SAML NameID format is not specified, Snowflake uses the following value:”
      ↩︎ Creating the SAML2 security integration
    4. 4.
      “Browser-based SSO does not work if the Snowflake-provided client is used by code that runs on a server.”
      ↩︎ SSO logins, logouts and client connections
      “Please disable Okta MFA for the user who uses Native SSO authentication with client drivers.”
      ↩︎ SSO logins, logouts and client connections
      “Without a password in Snowflake, a user cannot log in using Snowflake authentication and must use federated authentication instead.”
      ↩︎ Passwords alongside SSO and the break-glass administrator
      “you must maintain at least one Snowflake account administrator with a Snowflake password.”
      ↩︎ Passwords alongside SSO and the break-glass administrator
      “The MUST_CHANGE_PASSWORD user property does not apply for federated authentication and should not be used.”
      ↩︎ Exam trap 3
      “This authentication method is useful when you are using SSO with a client that doesn’t have access to a web browser”
      ↩︎ Checkpoint
      “Also, you must maintain at least one Snowflake account administrator with a Snowflake password.”
      ↩︎ Checkpoint
    5. 5.
      “Specifies one of the following policies for the user: Authentication policy Password policy Session policy”
      ↩︎ Passwords alongside SSO and the break-glass administrator
      “then incompatible properties remain stored, but are not returned by commands such as DESCRIBE USER.”
      ↩︎ User types: PERSON, NULL and SERVICE
      “You can’t set the TYPE property as NULL for an existing user.”
      ↩︎ User types: PERSON, NULL and SERVICE
      “setting this parameter to TRUE clears the MFA methods for the user”
      ↩︎ MFA enrollment, methods and recovery
    6. 6.
      “They cannot log in using a password. They cannot enroll in MFA. They are not subject to authentication policy MFA enforcement.”
      ↩︎ User types: PERSON, NULL and SERVICE
      “They cannot log in using a password. They cannot enroll in MFA. They are not subject to authentication policy MFA enforcement.”
      ↩︎ Exam trap 1
    7. 7.
      “MFA is intended for human users who authenticate with a password. Service users must use another form of authentication.”
      ↩︎ User types: PERSON, NULL and SERVICE
      “By default, Snowflake doesn’t require MFA for users who authenticate with single sign-on (SSO).”
      ↩︎ MFA enrollment, methods and recovery
      “create a custom authentication policy with MFA_ENROLLMENT=OPTIONAL, and then set the authentication policy on the account.”
      ↩︎ MFA enrollment, methods and recovery
      “Duo is not replicated like the other MFA methods.”
      ↩︎ MFA enrollment, methods and recovery
    8. 8.
      “To query login attempts by Snowflake users, Snowflake provides a login history:”
      ↩︎ MFA enrollment, methods and recovery

    Also cited

    Continue to part 2 of 2

    Key-pair, PAT and OAuth authentication in Snowflake

    Spotted a mistake, or was something unclear? Tell us.