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.
| Aspect | SAML 2.0 | OIDC |
|---|---|---|
| Integration type | TYPE = SAML2 | TYPE = OIDC |
| Token format | XML assertion | JWT (JSON Web Token) |
| Credential type | X.509 certificate | Client ID + Client Secret |
| Managed providers | None | Google, Microsoft |
| Driver SSO with authenticator=externalbrowser | Supported | Not supported (use authenticator=OAUTH_AUTHORIZATION_CODE) |
| Authentication-policy method | AUTHENTICATION_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?
Snowflake is the service provider and trusts the IdP's assertion, but it has to map that assertion to a Snowflake user. The email address in Okta must match both the user's login_name and the SAML NameID. Changing passwords, password flags or the protocol does not fix a mapping that doesn't match.
“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”Source: docs.snowflake.com
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.
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.
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';A button on the Snowflake login page means Snowflake-initiated SSO. That stays off until SAML2_ENABLE_SP_INITIATED is set to true, and the label property only sets the button's text. IdP-initiated SSO needs no Snowflake setting. SAML2_SIGN_REQUEST controls whether Snowflake signs its requests to the IdP. ENABLED turns on the integration itself, but it doesn't add the button.
Source: docs.snowflake.comCheckpoint 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?
Correct answer: C — Run CREATE SECURITY INTEGRATION with TYPE = SAML2, setting SAML2_ISSUER, SAML2_SSO_URL, SAML2_PROVIDER, SAML2_X509_CERT and a login page label
- A. User RSA public keys are for key-pair (JWT) authentication of clients with their own private key, not for trusting an IdP's SAML assertions.
- B. External OAuth validates access tokens presented by clients; it does not provide a browser SSO flow or a login-page button, and no such account parameter exists.
- C. A SAML2 security integration holds the IdP issuer, SSO URL, provider and signing certificate, and the login-page label drives the SSO button, so this is the supported way to federate authentication.
- D. A SCIM integration only provisions and deprovisions users and roles from the IdP. It does not carry SAML settings and cannot enable SSO sign-in.
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?
Browser-based SSO has to open a browser on the same machine, so it fails for code running on a server. Native SSO through Okta uses the Okta URL as the authenticator and needs no browser, but Okta MFA must be turned off for that user. ALLOW_ID_TOKEN only caches a token after a successful sign-in, and SAML2_ENABLE_SP_INITIATED only adds the login-page button.
“This authentication method is useful when you are using SSO with a client that doesn’t have access to a web browser”Source: docs.snowflake.com
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?
A user without a Snowflake password can only sign in through federation. You must still keep at least one account administrator with a password so someone can fix federation if the IdP is down. MUST_CHANGE_PASSWORD has no effect on federated sign-in. Snowsight can't remove passwords. Enabling federation leaves password sign-in on.
“Also, you must maintain at least one Snowflake account administrator with a Snowflake password.”Source: docs.snowflake.com
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?
Correct answer: D — Set an account authentication policy with AUTHENTICATION_METHODS = (SAML), plus a user-level policy allowing PASSWORD on the break-glass user
- A. A password policy governs password rules, not allowed login methods. Expiry forces a reset prompt and does not block password sign-in or grant a break-glass exception.
- B. Network policies filter by client IP and say nothing about the authentication method, so a user on an allowed IP could still sign in with a password.
- C. Unsetting passwords is brittle and per-user, and it leaves the account without an enforced SAML-only rule. New users or later password resets would restore password sign-in.
- D. Account-level policies apply to every user, and a policy set directly on a user takes precedence, so the break-glass user keeps password access while everyone else is limited to SAML.
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.
| TYPE | Represents | Password sign-in | MFA |
|---|---|---|---|
| PERSON | A human user who interacts with Snowflake | Allowed | Enrolls in MFA |
| NULL | Functions the same as PERSON | Allowed | Enrolls in MFA |
| SERVICE | A service or application with no human interaction | Not allowed; cannot have PASSWORD or MUST_CHANGE_PASSWORD | Cannot enroll; not subject to authentication policy MFA enforcement; cannot have MINS_TO_BYPASS_MFA |
| LEGACY_SERVICE | A non-interactive integration, being deprecated | Allowed | Not 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?
A SERVICE user can't have a password and can't enroll in MFA. It connects through drivers with a key pair, a programmatic access token or OAuth. NULL works the same as PERSON, so the user still signs in with a password and enrolls in MFA. LEGACY_SERVICE is deprecated, and those users will be migrated to SERVICE and blocked from password sign-in. DISABLE_MFA only switches MFA off for a while for a person.
“MFA is intended for human users who authenticate with a password. Service users must use another form of authentication.”Source: docs.snowflake.com
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)
Correct answers: A, D — The user can no longer sign in to Snowsight, because SERVICE users are limited to programmatic access through drivers and APIs; Password and MFA sign-in are unavailable to the user, so clients must use key-pair authentication, a programmatic access token or OAuth
- A. Correct. SERVICE users are blocked from interactive sign-in through the Snowflake web interface and are meant for programmatic clients.
- B. Incorrect. TYPE can be changed with ALTER USER SET TYPE, so existing users can be migrated without re-creation.
- C. Incorrect. Password authentication is not supported for SERVICE users, so the old password does not act as a fallback.
- D. Correct. SERVICE users are designed for non-interactive workloads and cannot authenticate with a password or enroll in MFA.
- E. Incorrect. SERVICE users are exempt from MFA enrollment. Enrollment requirements apply to PERSON users that sign in with a password.
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:
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.
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');By default, Snowflake does not require its own MFA for SSO users and leaves the second factor to the IdP. Setting ENFORCE_MFA_ON_EXTERNAL_AUTHENTICATION='ALL' inside MFA_POLICY makes Snowflake MFA required after SAML or OIDC sign-in. ALLOWED_METHODS only limits which MFA methods users can pick. MFA_ENROLLMENT and AUTHENTICATION_METHODS are separate policy properties that already appear in the statement, and neither one goes inside MFA_POLICY.
Source: docs.snowflake.comSources
(9)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 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.
“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.
“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.
“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.
“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.
“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.
“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.https://docs.snowflake.com/en/user-guide/oauth-introOfficial docs
“To query login attempts by Snowflake users, Snowflake provides a login history:”
↩︎ MFA enrollment, methods and recovery
Also cited
“The type of a user determines which authentication methods it can use.”
↩︎ Key concept