Every Snowflake security integration is a standing trust relationship: an OAuth client that can obtain tokens for your users, an external identity provider whose tokens Snowflake accepts, a SAML identity provider that signs people in, or a SCIM client that creates users and roles. These objects sit outside the user and role reviews most teams run, they are created by whoever held CREATE INTEGRATION at the time, and their defaults (90-day refresh tokens, PKCE optional, any non-blocked role allowed) are set for compatibility rather than least privilege. This runbook shows how to list every security integration, which settings to check for each type, how to see which users have consented to which OAuth clients, and how to tighten or retire integrations safely. It is written for Snowflake administrators and the security teams who review them. Service users and key pairs are covered in the Service Accounts in Snowflake Guide; this page is about the integrations those users and tools sign in through.
This is an independent guide from NHI Mgmt Group, based on Snowflake's public documentation as of November 2026. It is not sponsored or reviewed by Snowflake. Product features change, so confirm settings against Snowflake's current documentation.
Key takeaways
- Use a role that can see everything.
SHOW SECURITY INTEGRATIONSonly returns integrations the current role has a privilege on; Snowflake notes thatMANAGE GRANTS, held by ACCOUNTADMIN and SECURITYADMIN by default, sees all objects. - Snowflake OAuth defaults favour long sessions. Refresh tokens are issued by default and last 7,776,000 seconds (90 days), single-use refresh tokens are off, and PKCE is optional unless
OAUTH_ENFORCE_PKCEis set. - Role scope is the main control. Privileged system roles are blocked by default; check that nobody has reversed that at account level, and set
ALLOWED_ROLES_LISTso clients can only use the roles they need. - External OAuth trust is defined by issuer, keys and user mapping. A wrong
EXTERNAL_OAUTH_ISSUER, JWS keys URL or mapping claim means Snowflake trusts tokens it should not, or maps them to the wrong user. - Consent outlives the project. OAuth consent is additive and stays until revoked, so review
SHOW DELEGATED AUTHORIZATIONSand remove consents for integrations and users that no longer need them.
When you need this
Run this audit at least every six months, after a change of identity provider, when a BI or data tool is retired, after any suspected account compromise, and before you add a new OAuth client. It is also the evidence for an annual review of external connections under NIST SP 800-53 AC-2 Account Management and CM-8 System Component Inventory, where each integration is a component and an access path.
The goal is a register that answers, for each security integration: what it is for, who owns it, which identity source or client it trusts, which roles it can grant, how long its tokens last, which network policy applies, and which users have actually authenticated through it in the last 90 days.
Security integration types and what to check
Snowflake's CREATE SECURITY INTEGRATION reference lists six types. Each is a different trust surface:
| TYPE | What it trusts | Key settings to review |
|---|---|---|
OAUTH (Snowflake OAuth) | A client application (partner: Tableau, Looker; or CUSTOM) that obtains Snowflake-issued tokens on behalf of users | OAUTH_CLIENT_TYPE, redirect URIs, refresh token settings, PKCE, role lists, NETWORK_POLICY, client secrets or RSA keys |
EXTERNAL_OAUTH | Tokens issued by an external authorisation server (OKTA, AZURE, PING_FEDERATE, CUSTOM) | Issuer, JWS keys URL or RSA keys, audience list, user mapping claim and attribute, role lists, any-role mode, NETWORK_POLICY |
SAML2 | Assertions signed by a SAML identity provider | Issuer, SSO URL, signing certificate, ALLOWED_USER_DOMAINS, ALLOWED_EMAIL_PATTERNS, SAML2_FORCE_AUTHN |
OIDC | An OpenID Connect identity provider for user sign-in | Issuer and client settings against your IdP configuration |
SCIM | A provisioning client that creates and updates users and roles | SCIM_CLIENT, RUN_AS_ROLE, SYNC_PASSWORD, NETWORK_POLICY |
API_AUTHENTICATION | Credentials Snowflake uses to call external APIs | Which external access integrations and functions use it, and who can use them |
Inbound integrations (OAuth, External OAuth, SAML2, OIDC, SCIM) decide who gets into Snowflake. API_AUTHENTICATION is outbound: it holds credentials for other systems, so treat it like a stored secret and review who can use it.
Before you start
- Role: SECURITYADMIN or a custom role with
MANAGE GRANTSfor listing and describing integrations. Listing consents per integration withSHOW DELEGATED AUTHORIZATIONS TO SECURITY INTEGRATIONrequires ACCOUNTADMIN, so plan a short, logged session for that step. - Usage data: access to
SNOWFLAKE.ACCOUNT_USAGE.LOGIN_HISTORY, which keeps 365 days of login attempts with anAUTHORIZING_INTEGRATION_NAMEcolumn. Snowflake notes up to 120 minutes of latency. - IdP access: read access to the identity provider configuration so you can compare issuer, audience, certificates and app assignments with what Snowflake trusts.
- Owners: a contact for each BI tool, application and provisioning client, because most findings end with "is this still needed?".
Step-by-step audit
- List every security integration. As a role with
MANAGE GRANTS, runSHOW SECURITY INTEGRATIONS. Recordname,type,category,enabled,commentandcreated_on. Check who owns each one withSHOW GRANTS ON INTEGRATION <name>. Disabled integrations still belong in the register: they can be re-enabled by their owner. - Describe each one. Run
DESC SECURITY INTEGRATION <name>and save the output. Snowflake documents that for OAuth clients this shows the authorisation and token endpoints, redirect URI and public key fingerprints. - Review Snowflake OAuth clients. For each
OAUTHintegration check:- Client type:
PUBLICclients cannot hold a secret, soOAUTH_ENFORCE_PKCE = TRUEmatters most for them. Snowflake highly recommends PKCE for all authorisations and supports onlyS256. - Redirect URIs:
OAUTH_REDIRECT_URIandOAUTH_ALTERNATE_REDIRECT_URISshould point only to hosts the owner controls.OAUTH_ALLOW_NON_TLS_REDIRECT_URIshould beFALSE(the default). - Tokens:
OAUTH_ACCESS_TOKEN_VALIDITY(60 to 3,600 seconds, default 600),OAUTH_ISSUE_REFRESH_TOKENS(defaultTRUE),OAUTH_REFRESH_TOKEN_VALIDITY(default 7,776,000 seconds; minimum 86,400 for custom clients and 3,600 for partner applications) andOAUTH_SINGLE_USE_REFRESH_TOKENS_REQUIRED(defaultFALSE). - Roles:
BLOCKED_ROLES_LIST,ALLOWED_ROLES_LIST(empty means any role not blocked),PRE_AUTHORIZED_ROLES_LISTfor confidential clients,OAUTH_USE_SECONDARY_ROLESandOAUTH_ANY_ROLE_MODE(defaultDISABLE). - Client credentials: whether the client authenticates with a secret or with RSA keys (
OAUTH_CLIENT_RSA_PUBLIC_KEYand_2). Snowflake recommends key-pair client assertions (RFC 7523) for new clients. Record who can runSYSTEM$SHOW_OAUTH_CLIENT_SECRETSfor the integration, because it returns the client ID and both client secrets.
- Client type:
- Review External OAuth integrations. Compare
EXTERNAL_OAUTH_ISSUERandEXTERNAL_OAUTH_JWS_KEYS_URL(or the configured RSA keys) with the authorisation server you intend to trust. CheckEXTERNAL_OAUTH_AUDIENCE_LISTis no wider than needed. CheckEXTERNAL_OAUTH_TOKEN_USER_MAPPING_CLAIMandEXTERNAL_OAUTH_SNOWFLAKE_USER_MAPPING_ATTRIBUTE(LOGIN_NAMEorEMAIL_ADDRESS): mapping on an attribute users or app owners can influence, such as an unverified email, lets a token land on the wrong Snowflake user. ReviewEXTERNAL_OAUTH_BLOCKED_ROLES_LIST,EXTERNAL_OAUTH_ALLOWED_ROLES_LIST(Snowflake cautions about adding privileged roles here) andEXTERNAL_OAUTH_ANY_ROLE_MODE. - Check the account-level privileged role switches. By default ACCOUNTADMIN, ORGADMIN, GLOBALORGADMIN and SECURITYADMIN cannot be used through OAuth. Run
SHOW PARAMETERS LIKE '%PRIVILEGED_ROLES_TO_BLOCKED_LIST%' IN ACCOUNTand confirmOAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LISTandEXTERNAL_OAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LISTareTRUE. AFALSEvalue needs a documented reason and owner. - Review SAML2 and OIDC integrations. Confirm the issuer, SSO URL and signing certificate match the current IdP configuration, and record the certificate expiry. Where several IdPs exist, check
ALLOWED_USER_DOMAINSandALLOWED_EMAIL_PATTERNSso each IdP can only sign in the users it should. Delete integrations for IdPs you no longer use. - Review SCIM integrations. Check
RUN_AS_ROLE(the role that owns provisioned users and roles), confirm it holds no privileges beyond provisioning, checkSYNC_PASSWORDisFALSEunless you have a documented need, and confirm the SCIM bearer token is stored only in the IdP. - Check network policies. Record the
NETWORK_POLICYon each OAuth, External OAuth and SCIM integration. For Snowflake OAuth token requests and queries, Snowflake documents the precedence as user-level policy, then integration-level, then account-level; browser sign-in uses the user's policy. Make sure the effective policy for each client is the one you intend. - Review consents. As ACCOUNTADMIN, run
SHOW DELEGATED AUTHORIZATIONS TO SECURITY INTEGRATION <name>for each OAuth integration. Note users who left, users with consent to roles they no longer hold, and consents that allow role switching (can_switch_roles, a preview column). - Compare with actual use. Query
LOGIN_HISTORYgrouped byAUTHORIZING_INTEGRATION_NAME,USER_NAMEandCLIENT_IPfor the last 90 days. Integrations with no successful logins are candidates for disabling. TreatREPORTED_CLIENT_TYPEas a hint only: Snowflake states it is self-reported.
Triage what you find
| Finding | Why it matters | Typical fix |
|---|---|---|
| Privileged roles unblocked at account level | OAuth tokens can carry ACCOUNTADMIN or SECURITYADMIN | Set the parameter back to TRUE unless a documented exception exists |
ALLOWED_ROLES_LIST empty on a custom client | Any non-blocked role a user holds can be used | List only the roles the client needs |
| Public client without PKCE enforced | Authorisation codes are not bound to the client that requested them | Set OAUTH_ENFORCE_PKCE = TRUE after confirming the client sends S256 |
| 90-day reusable refresh tokens | A stolen refresh token keeps working for its whole validity | Shorten OAUTH_REFRESH_TOKEN_VALIDITY; turn on single-use refresh tokens where the client supports them |
| No integration network policy, broad account policy | Tokens usable from anywhere the account allows | Attach a policy listing the client's egress ranges |
| Integration with no logins in 90 days | Unused trust that nobody watches | Disable, wait one business cycle, then drop |
| External OAuth mapped on email | Token may map to the wrong user if emails are not verified or unique | Map on a stable, IdP-controlled claim to LOGIN_NAME |
| Stale consents | Users keep delegated access after need ends | ALTER USER ... REMOVE DELEGATED AUTHORIZATIONS |
Decision guidance
- Snowflake OAuth or External OAuth: Snowflake OAuth keeps token settings in Snowflake and suits partner BI tools. External OAuth puts token issuance, conditional access and revocation in your identity provider, which suits organisations that already run machine and user tokens through one IdP. Either way, keep role lists tight in Snowflake.
- Refresh token lifetime: long validity reduces re-authorisation prompts for analysts; short validity limits the window for a stolen token. For tools used daily, a lifetime of days rather than months is usually workable. For headless service use, prefer key pair or workload identity federation for the service user over long refresh tokens; see How to set up Snowflake workload identity federation and programmatic access tokens for service users.
- Client secret or key pair for custom clients: Snowflake recommends key-pair client assertions for new clients. Use the two key slots to rotate without downtime.
- Small and large accounts: a single account with two or three integrations can be reviewed by hand in an hour. With many accounts in an organisation, script the
SHOWandDESCoutput per account into a central table and diff it on each run.
Make changes safely and roll back
- Save current settings. Keep the
DESC SECURITY INTEGRATIONoutput for each integration before any change; it is your rollback reference. - Change one setting at a time and test with the owner. Enforcing PKCE, shortening refresh tokens or narrowing roles can break a client. Test with a pilot user, then announce to all users.
- Disable before dropping. Set
ENABLED = FALSEon unused integrations and watchLOGIN_HISTORYand support tickets for a business cycle. Re-enabling restores service; dropping does not. - Re-run the audit after changes. Confirm the new values in
DESCoutput and that expected users still authenticate through the integration.
Detection and measurement
- Integration changes: alert on
CREATE,ALTERandDROP SECURITY INTEGRATIONstatements inQUERY_HISTORY, and onALTER ACCOUNTchanges to the privileged role parameters. - Unusual OAuth logins: logins through an integration from IP addresses outside the client's known ranges, or by users who have never used that integration. See the Snowflake Login and Access History Detection Guide.
- Secret access: calls to
SYSTEM$SHOW_OAUTH_CLIENT_SECRETSin query history outside a planned change.
Metrics (sample targets, set your own):
- Percentage of security integrations with a named owner and a review in the last six months.
- Number of OAuth integrations with an empty allowed roles list.
- Percentage of OAuth and External OAuth integrations with an integration-level network policy.
- Number of enabled integrations with no successful login in 90 days.
- Number of consents held by disabled or departed users.
Framework mapping
| Framework | Reference | How this audit supports it |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-2 Account Management; CM-8 System Component Inventory | Register of integrations, owners and authorised use |
| NIST SP 800-53 Rev 5 | IA-2 and IA-8 Identification and Authentication | Reviews which identity sources Snowflake accepts |
| NIST CSF 2.0 | PR.AA-01; PR.AA-03; ID.AM-08 | Identities and credentials managed; services authenticated; integrations managed through their life cycle |
| ISO/IEC 27001:2022 Annex A | A.5.16 Identity management; A.5.17 Authentication information; A.8.5 Secure authentication | Trust relationships and client credentials controlled |
| MITRE ATT&CK v20 | T1528 Steal Application Access Token; T1550.001 Application Access Token; T1606.002 SAML Tokens | Shorter tokens, tight roles and correct trust settings reduce the value of stolen or forged tokens |
Common failure patterns
- Auditing with a role that cannot see everything.
SHOW INTEGRATIONSsilently omits integrations the role has no privilege on, so a review run as a team role looks clean when it is not. - Leaving every default in place. Ninety-day reusable refresh tokens, optional PKCE and an empty allowed roles list together give a broad, long-lived grant.
- Integrations for retired tools. A BI tool is replaced, but its OAuth integration and the users' consents remain enabled.
- Old identity providers still trusted. After an IdP migration, the previous SAML2 or External OAuth integration is left enabled, and with it a second way in.
- Over-privileged SCIM run-as role. The provisioning role is granted extra privileges for convenience, which turns the IdP's SCIM token into a high-value credential.
- Revoking access but not consent. Removing a user's role is not the same as removing a delegated authorisation; consent is additive and remains until removed.
Practitioner checklist
- List all security integrations with a
MANAGE GRANTSrole and record owner and purpose. - Save
DESC SECURITY INTEGRATIONoutput for each before any change. - Confirm both privileged role blocked-list account parameters are
TRUE. - Set an allowed roles list on every OAuth and External OAuth integration.
- Enforce PKCE and review refresh token lifetime and single-use setting on Snowflake OAuth clients.
- Check External OAuth issuer, keys URL, audience and user mapping against the IdP.
- Attach an integration-level network policy where the client has known egress ranges.
- Review delegated authorisations and remove stale consents.
- Disable integrations with no logins in 90 days, then drop after a business cycle.
- Alert on integration changes and
SYSTEM$SHOW_OAUTH_CLIENT_SECRETScalls.
Standards and references
- Snowflake: CREATE SECURITY INTEGRATION
- Snowflake: CREATE SECURITY INTEGRATION (Snowflake OAuth)
- Snowflake: CREATE SECURITY INTEGRATION (External OAuth)
- Snowflake: Configure Snowflake OAuth for custom clients
- Snowflake: Snowflake OAuth overview
- Snowflake: SHOW DELEGATED AUTHORIZATIONS
- Snowflake: LOGIN_HISTORY view
- Snowflake: CREATE SECURITY INTEGRATION (SAML2)
Related NHI Mgmt Group resources: Service Accounts in Snowflake Guide · Snowflake Security Guide · Snowflake Security Checklist · Snowflake Login and Access History Detection Guide