Protect the analyst’s identity at sign-in
Ana joins Maple Market. She already signs in to a corporate identity provider, or IdP, with company-managed multi-factor authentication. The team wants her to use that identity for Snowflake and to remove access when she leaves. A one-off local password would put an extra identity lifecycle on the data team.
Multi-factor authentication, or MFA, requires multiple factors to prove identity, such as a password plus a separate authenticator. Use organization-approved strong methods and prefer phishing-resistant methods where available. For human password sign-ins, design for required MFA and check the account’s enforcement status. Snowflake has rolled out stronger requirements in phases. Use a PERSON identity for a person and a SERVICE identity for automation.
Single sign-on, or SSO, lets Snowflake trust sign-in through an identity provider. With SAML federation, the IdP verifies the user and sends a signed assertion. Snowflake’s SAML security integration defines that trust and how the incoming identity matches an account user. Enforce the IdP and Snowflake MFA requirements that apply to the sign-in flow and client.
Provision the user before giving the user data access
SCIM can synchronize users and groups from a directory into Snowflake. It helps with onboarding, offboarding and group changes. SCIM and SSO serve different moments. SCIM keeps identities and memberships current. SSO verifies identity when Ana connects. Role grants govern what the resulting session can do.
Treat SAML and SCIM as separately owned security integrations. Record who owns the signing certificate, the provisioning credential and the role mappings. The provisioner must own identities and roles it manages for changes to sync. Test one approved group addition and removal and ensure the old access path disappears. Keep signing keys and provisioning tokens in approved secret storage.
| Example symptom | First place to check |
|---|---|
| Company sign-in or MFA fails | Identity provider and authentication requirements |
| The person is absent from Snowflake or mapped to the wrong group | Provisioning and the Snowflake user mapping |
| Login works and a SELECT fails | Active roles and the object grant chain |
Follow a signed SAML assertion into a Snowflake session
Security Assertion Markup Language (SAML) is a format for signed identity statements. Snowflake is the service provider (SP). The identity provider (IdP) authenticates Ana, applies its factor policy and sends Snowflake a signed assertion for this service. Snowflake checks the trusted signer, intended recipient and identity mapping before creating a session for an existing Snowflake user.
The assertion consumer service (ACS) is the Snowflake URL that receives the assertion. The Entity ID tells the provider which service the assertion is for. The NameID identifies Ana and must match the provisioned Snowflake LOGIN_NAME. If Single Sign-On works but a report fails, check the session role and the object grants.
Use an approved sandbox and a dedicated pilot app, user and directory group. Keep a second administrator’s existing strong sign-in path available. The identity owner configures the IdP application. Use an approved Snowflake role with CREATE INTEGRATION and a separate identity or grant administrator when needed. Reuse a compliant, dedicated PERSON pilot unless following the SCIM provisioning steps.
- Ana’s browserAuthenticate and complete factors to Identity provider
- Identity providerBrowser posts signed assertion to Snowflake SAML integration
- Snowflake SAML integrationValidate statement and resolve NameID to Matched user and active role
Register the pilot SAML app and exchange metadata
In the IdP console, create a SAML 2.0 app for the approved Snowflake account. Use the account URL as Entity ID and that URL with /fed/login as ACS. Choose the pilot user or group, set NameID to the approved login identifier, and require strong authentication. Export the IdP issuer, sign-in URL and public X.509 signing certificate. The Snowflake administrator enters those values below.
SAML2_ISSUER and SAML2_SSO_URL describe the IdP. The two SNOWFLAKE URLs must match what the IdP app expects. SAML2_X509_CERT uses the certificate body with no PEM markers. Snowflake-initiated sign-in is enabled for the labelled login choice. When your IdP and policies support metadata discovery, the official guide offers METADATA_URL and a metadata refresh workflow for certificate changes.
CREATE SECURITY INTEGRATION M17D_SAML
TYPE = SAML2
ENABLED = TRUE
SAML2_PROVIDER = 'CUSTOM'
SAML2_ISSUER = '<idp_entity_id>'
SAML2_SSO_URL = '<idp_saml_login_url>'
SAML2_X509_CERT = '<idp_public_certificate_body>'
SAML2_SNOWFLAKE_ISSUER_URL = 'https://<org>-<account>.snowflakecomputing.com'
SAML2_SNOWFLAKE_ACS_URL = 'https://<org>-<account>.snowflakecomputing.com/fed/login'
SAML2_ENABLE_SP_INITIATED = TRUE
SAML2_SP_INITIATED_LOGIN_PAGE_LABEL = 'Maple Market Pilot';
DESCRIBE SECURITY INTEGRATION M17D_SAML;Sign in as the pilot and verify both identity and role
Check that the pilot app is assigned, the Snowflake PERSON login name matches NameID, and the active authentication policy permits this SAML integration. Use a private browser window from the approved network. Open the Snowflake login page and select Maple Market Pilot. Complete the provider’s factor challenge. If the account also requires Snowflake MFA for SSO, enroll under the pilot user’s profile using an approved method, such as a passkey, then test again.
Run the query as the pilot and expect the assigned user and approved role. Verify MFA with the correct provider or Snowflake event. A reused IdP session may not display a new factor prompt. Test one intended rejection using a separate, unassigned sandbox identity. Keep the production identity and existing integrations in place. A login failure at the SAML return often means a mismatched issuer, ACS, name mapping, or expired certificate.
SELECT CURRENT_USER() AS pilot_user, CURRENT_ROLE() AS active_role;Provision and retire pilot access with SCIM
System for Cross-domain Identity Management (SCIM) synchronizes directory users and group memberships with Snowflake. It runs separately from browser sign-in. The directory connector sends authenticated HTTPS requests to the SCIM endpoint. Snowflake runs changes through the provisioner role, which must own the identities and groups it manages.
This workflow uses one generic sandbox integration and a legacy SCIM token because many directory connectors accept that interface. For supported connectors, prefer the documented External OAuth or programmatic access token setup and use the correct integration URL. Do not issue either credential from a shared worksheet or include it in evidence.
Set up the Snowflake SCIM endpoint
Use the documented ACCOUNTADMIN setup for the isolated practice account. CREATE USER and CREATE ROLE are the functions the provisioner needs to sync the assigned group. RUN_AS_ROLE chooses the role that owns the objects the connector creates. Keep existing identities under their existing owner unless a separately planned ownership migration is needed.
Generate the pilot credential in an approved private administration session. Install it directly in the connector’s secret field. In the IdP provisioning app, set the base URL to https://<org>-<account>.snowflakecomputing.com/scim/v2/ for a SCIM access token, set bearer authentication, test the connection and restrict provisioning to the dedicated pilot group. Map the directory login field consistently with SAML NameID.
USE ROLE ACCOUNTADMIN;
CREATE ROLE M17D_SCIM_PROVISIONER;
GRANT CREATE USER ON ACCOUNT TO ROLE M17D_SCIM_PROVISIONER;
GRANT CREATE ROLE ON ACCOUNT TO ROLE M17D_SCIM_PROVISIONER;
GRANT ROLE M17D_SCIM_PROVISIONER TO ROLE ACCOUNTADMIN;
CREATE SECURITY INTEGRATION M17D_SCIM
TYPE = SCIM
SCIM_CLIENT = 'GENERIC'
RUN_AS_ROLE = 'M17D_SCIM_PROVISIONER';
DESCRIBE SECURITY INTEGRATION M17D_SCIM;
-- Run only in the approved secret-handling workflow. This returns a credential.
SELECT SYSTEM$GENERATE_SCIM_ACCESS_TOKEN('M17D_SCIM');Prove group membership and then remove it
In the directory, assign the pilot user and group to provisioning. Wait for the connector’s success event. Substitute the provisioned SQL identifiers below. As SECURITYADMIN, verify the user and role exist and the user has the group role. The security owner can grant an approved report role to the provisioned group role after both roles exist. Do not attach a default and assume it supplies membership.
Remove the pilot group membership at the directory source and sync again. Expect the group role to be absent in a fresh Snowflake query and the report permission to be gone if no other path exists. A sync failure often comes from an expired token, unassigned group, wrong endpoint or a provisioner that does not own a pre-existing target. Clear the app’s secret and disable provisioning at the source before dropping a disposable integration. Remove the test users and group roles through the agreed owner after checking that no workload relies on them.
SHOW USERS LIKE '<exact_provisioned_username>';
SHOW ROLES LIKE '<exact_provisioned_group_role>';
SHOW GRANTS TO USER <PROVISIONED_USERNAME>;
-- Optional mapping after both approved roles exist
GRANT ROLE <APPROVED_REPORT_ROLE> TO ROLE <PROVISIONED_GROUP_ROLE>;Remove the sandbox integrations after offboarding
The integration owner drops only the integrations from this pilot after removing directory assignments and verifying the connector no longer runs. Audit remaining pilot users and roles before retiring the provisioner. Retain other login paths and existing production federation.
DROP SECURITY INTEGRATION M17D_SCIM;
DROP SECURITY INTEGRATION M17D_SAML;
-- After the directory-managed lab users and groups have been retired:
DROP ROLE M17D_SCIM_PROVISIONER;
SHOW SECURITY INTEGRATIONS LIKE 'M17D_%';Explain the design in an interview
Name the rule, then explain how you would prove it.
Can SCIM fix a failed SAML login?
SCIM can create or update the Snowflake identity. If that identity exists, I would check the SAML issuer, assertion recipient, login mapping and actual authentication policy.
Where should the MFA requirement be enforced?
I would start with the approved IdP factor policy for SSO and confirm whether the Snowflake policy also requires MFA. I would test a fresh sign-in and review the source that enforced the factor.
What would you test before renewing a signing certificate?
I would coordinate the certificate update with the IdP owner, test the pilot in a new session before cutover, and keep the approved alternate administrator path available.
Words used in this lesson
- MFA
- Use more than one factor to verify an identity.
- SAML
- A standard for sending signed identity assertions.
- SCIM
- A standard for provisioning identities and groups from a directory.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Snowflake MFA, SAML Single Sign-On (SSO) and SCIM Provisioning
Provision the identity
The company directory and provisioner keep the approved user and reporting group current.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Provision the identity
The company directory and provisioner keep the approved user and reporting group current.
Directory group → SCIM integration → Snowflake user and role
- Sign in and run a test
SSO establishes the session, then the active role must hold the report permissions.
IdP verifies user → Snowflake session → Role permits report
Try the SQL or command
Read → predict → run in your learning environment → compare. You can also learn by reading without an account.
New to SQL? Where to run it and how to read it
A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.
- No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
- For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
- Read the entire example, including comments beginning with
--. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor. - Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
- SELECT / FROM
- Choose the values to return / identify their input.
- VALUES / COLUMN1
- VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
- AS / WITH
- AS gives a result a readable name. WITH names a temporary query step within one statement.
- NULL / ::
- NULL means missing or unknown. The :: notation converts a value to a named data type.
- Session
- One connection and its settings. Keep related transaction steps in the same session.
- Database.schema.table
- A full address for stored data. It is separate from the warehouse that processes queries.
Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →
Help with common practice errors
- No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
- Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
- Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
- Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Inspect an existing lab SAML integration
DESCRIBE SECURITY INTEGRATION <approved_lab_saml_integration>;What to expect and why
Use an authorized integration administrator and replace the placeholder with a disposable integration configured by the identity owner. Review the expected issuer, identity mapping and enabled state. Keep configuration output private and share only the relevant redacted fields.
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
Ana’s IdP sign-in succeeds, but the expected role never appears. Where would you check first?
Compare your reasoning
Check her directory group, SCIM provisioning and role mapping, followed by the granted and active roles in Snowflake.
Official sources and curriculum
Module 17 · See module scope
- Snowflake authentication methods
- Strong authentication rollout and human MFA
- Federated authentication and SSO
- SCIM support and provisioner ownership
- DESCRIBE SECURITY INTEGRATION
- Configure a SAML security integration
- Manage MFA and enrollment
- Create a custom SCIM integration
- SCIM endpoints and supported credentials
By Rohit Ray · Independent educational lesson · Explore this visual lab