Join our Newsletter — 33% off our NHI Course
Home› Guides› How to audit Snowflake security integrations and OAuth…
Guide Non-Human Identity (NHI)

How to audit Snowflake security integrations and OAuth clients: settings, roles and tokens to review

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 13 min read
On this page

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 INTEGRATIONS only returns integrations the current role has a privilege on; Snowflake notes that MANAGE 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_PKCE is 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_LIST so 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 AUTHORIZATIONS and 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:

TYPEWhat it trustsKey settings to review
OAUTH (Snowflake OAuth)A client application (partner: Tableau, Looker; or CUSTOM) that obtains Snowflake-issued tokens on behalf of usersOAUTH_CLIENT_TYPE, redirect URIs, refresh token settings, PKCE, role lists, NETWORK_POLICY, client secrets or RSA keys
EXTERNAL_OAUTHTokens 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
SAML2Assertions signed by a SAML identity providerIssuer, SSO URL, signing certificate, ALLOWED_USER_DOMAINS, ALLOWED_EMAIL_PATTERNS, SAML2_FORCE_AUTHN
OIDCAn OpenID Connect identity provider for user sign-inIssuer and client settings against your IdP configuration
SCIMA provisioning client that creates and updates users and rolesSCIM_CLIENT, RUN_AS_ROLE, SYNC_PASSWORD, NETWORK_POLICY
API_AUTHENTICATIONCredentials Snowflake uses to call external APIsWhich 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 GRANTS for listing and describing integrations. Listing consents per integration with SHOW DELEGATED AUTHORIZATIONS TO SECURITY INTEGRATION requires 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 an AUTHORIZING_INTEGRATION_NAME column. 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

  1. List every security integration. As a role with MANAGE GRANTS, run SHOW SECURITY INTEGRATIONS. Record name, type, category, enabled, comment and created_on. Check who owns each one with SHOW GRANTS ON INTEGRATION <name>. Disabled integrations still belong in the register: they can be re-enabled by their owner.
  2. 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.
  3. Review Snowflake OAuth clients. For each OAUTH integration check:
    • Client type: PUBLIC clients cannot hold a secret, so OAUTH_ENFORCE_PKCE = TRUE matters most for them. Snowflake highly recommends PKCE for all authorisations and supports only S256.
    • Redirect URIs: OAUTH_REDIRECT_URI and OAUTH_ALTERNATE_REDIRECT_URIS should point only to hosts the owner controls. OAUTH_ALLOW_NON_TLS_REDIRECT_URI should be FALSE (the default).
    • Tokens: OAUTH_ACCESS_TOKEN_VALIDITY (60 to 3,600 seconds, default 600), OAUTH_ISSUE_REFRESH_TOKENS (default TRUE), OAUTH_REFRESH_TOKEN_VALIDITY (default 7,776,000 seconds; minimum 86,400 for custom clients and 3,600 for partner applications) and OAUTH_SINGLE_USE_REFRESH_TOKENS_REQUIRED (default FALSE).
    • Roles: BLOCKED_ROLES_LIST, ALLOWED_ROLES_LIST (empty means any role not blocked), PRE_AUTHORIZED_ROLES_LIST for confidential clients, OAUTH_USE_SECONDARY_ROLES and OAUTH_ANY_ROLE_MODE (default DISABLE).
    • Client credentials: whether the client authenticates with a secret or with RSA keys (OAUTH_CLIENT_RSA_PUBLIC_KEY and _2). Snowflake recommends key-pair client assertions (RFC 7523) for new clients. Record who can run SYSTEM$SHOW_OAUTH_CLIENT_SECRETS for the integration, because it returns the client ID and both client secrets.
  4. Review External OAuth integrations. Compare EXTERNAL_OAUTH_ISSUER and EXTERNAL_OAUTH_JWS_KEYS_URL (or the configured RSA keys) with the authorisation server you intend to trust. Check EXTERNAL_OAUTH_AUDIENCE_LIST is no wider than needed. Check EXTERNAL_OAUTH_TOKEN_USER_MAPPING_CLAIM and EXTERNAL_OAUTH_SNOWFLAKE_USER_MAPPING_ATTRIBUTE (LOGIN_NAME or EMAIL_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. Review EXTERNAL_OAUTH_BLOCKED_ROLES_LIST, EXTERNAL_OAUTH_ALLOWED_ROLES_LIST (Snowflake cautions about adding privileged roles here) and EXTERNAL_OAUTH_ANY_ROLE_MODE.
  5. 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 ACCOUNT and confirm OAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LIST and EXTERNAL_OAUTH_ADD_PRIVILEGED_ROLES_TO_BLOCKED_LIST are TRUE. A FALSE value needs a documented reason and owner.
  6. 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_DOMAINS and ALLOWED_EMAIL_PATTERNS so each IdP can only sign in the users it should. Delete integrations for IdPs you no longer use.
  7. Review SCIM integrations. Check RUN_AS_ROLE (the role that owns provisioned users and roles), confirm it holds no privileges beyond provisioning, check SYNC_PASSWORD is FALSE unless you have a documented need, and confirm the SCIM bearer token is stored only in the IdP.
  8. Check network policies. Record the NETWORK_POLICY on 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.
  9. 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).
  10. Compare with actual use. Query LOGIN_HISTORY grouped by AUTHORIZING_INTEGRATION_NAME, USER_NAME and CLIENT_IP for the last 90 days. Integrations with no successful logins are candidates for disabling. Treat REPORTED_CLIENT_TYPE as a hint only: Snowflake states it is self-reported.

Triage what you find

FindingWhy it mattersTypical fix
Privileged roles unblocked at account levelOAuth tokens can carry ACCOUNTADMIN or SECURITYADMINSet the parameter back to TRUE unless a documented exception exists
ALLOWED_ROLES_LIST empty on a custom clientAny non-blocked role a user holds can be usedList only the roles the client needs
Public client without PKCE enforcedAuthorisation codes are not bound to the client that requested themSet OAUTH_ENFORCE_PKCE = TRUE after confirming the client sends S256
90-day reusable refresh tokensA stolen refresh token keeps working for its whole validityShorten OAUTH_REFRESH_TOKEN_VALIDITY; turn on single-use refresh tokens where the client supports them
No integration network policy, broad account policyTokens usable from anywhere the account allowsAttach a policy listing the client's egress ranges
Integration with no logins in 90 daysUnused trust that nobody watchesDisable, wait one business cycle, then drop
External OAuth mapped on emailToken may map to the wrong user if emails are not verified or uniqueMap on a stable, IdP-controlled claim to LOGIN_NAME
Stale consentsUsers keep delegated access after need endsALTER 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 SHOW and DESC output per account into a central table and diff it on each run.

Make changes safely and roll back

  1. Save current settings. Keep the DESC SECURITY INTEGRATION output for each integration before any change; it is your rollback reference.
  2. 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.
  3. Disable before dropping. Set ENABLED = FALSE on unused integrations and watch LOGIN_HISTORY and support tickets for a business cycle. Re-enabling restores service; dropping does not.
  4. Re-run the audit after changes. Confirm the new values in DESC output and that expected users still authenticate through the integration.

Detection and measurement

  • Integration changes: alert on CREATE, ALTER and DROP SECURITY INTEGRATION statements in QUERY_HISTORY, and on ALTER ACCOUNT changes 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_SECRETS in 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

FrameworkReferenceHow this audit supports it
NIST SP 800-53 Rev 5AC-2 Account Management; CM-8 System Component InventoryRegister of integrations, owners and authorised use
NIST SP 800-53 Rev 5IA-2 and IA-8 Identification and AuthenticationReviews which identity sources Snowflake accepts
NIST CSF 2.0PR.AA-01; PR.AA-03; ID.AM-08Identities and credentials managed; services authenticated; integrations managed through their life cycle
ISO/IEC 27001:2022 Annex AA.5.16 Identity management; A.5.17 Authentication information; A.8.5 Secure authenticationTrust relationships and client credentials controlled
MITRE ATT&CK v20T1528 Steal Application Access Token; T1550.001 Application Access Token; T1606.002 SAML TokensShorter 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 INTEGRATIONS silently 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 GRANTS role and record owner and purpose.
  • Save DESC SECURITY INTEGRATION output 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_SECRETS calls.

Standards and references

Related NHI Mgmt Group resources: Service Accounts in Snowflake Guide · Snowflake Security Guide · Snowflake Security Checklist · Snowflake Login and Access History Detection Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.