Skip to main content
Connect Snowflake to Oleria to see who has access to your Snowflake account, which roles they hold, and how roles grant other roles, along with risks and SAML SSO insights. Oleria generates a setup script for you that creates a dedicated connector user, role, and warehouse in Snowflake.

What Oleria discovers

  • Users, roles, and role memberships - Snowflake users, the roles granted to them, and the role-to-role hierarchy. Users with the SERVICE or LEGACY_SERVICE type appear as machine accounts, not human users.
  • MFA and SSO configuration - per-user MFA enrollment and SAML SSO settings. For each enrolled user, Oleria also shows the MFA methods: time-based one-time passcode (TOTP), passkey, and Duo.
  • Account-level MFA risk - Oleria raises a risk when no authentication policy is set on your Snowflake account, or when the account’s authentication policy doesn’t require MFA enrollment.
  • Resources - databases and other objects, and the access each role has to them.
  • Activity - sign-in history, access history, and query history.
  • Policies and integration metadata - collected into tables the setup script creates in your Snowflake account, and kept up to date by a task that runs hourly. Oleria uses this data to generate risks and SAML SSO insights.

Prerequisites

  • A Snowflake user with the ACCOUNTADMIN role, to run the setup script that creates Oleria’s connector user, role, and warehouse and grants their permissions.
  • Admin access on the Oleria platform to add a new integration.
Standard integrations are configured with read-only permissions.

Copy the account identifier

1

Sign in as ACCOUNTADMIN

Sign in to your Snowflake instance and confirm your role is set to ACCOUNTADMIN.
2

Copy the account identifier

Go to ACCOUNTADMIN -> Account -> your account number, and select Copy account identifier.Snowflake account menu showing the account identifier

Generate the setup script in Oleria

1

Open the integration and provide connector details

Sign in to your Oleria workspace, go to Integrations, and select Snowflake. A side panel opens. Provide the following information and select Continue:
  • Account Identifier - copied above, in the format <org-name>.<account-name> or <org-name>-<account-name>
  • User Name - default is oleria_connector_user. Change if preferred.
  • Role Name - default is oleria_connector_role. Change if preferred.
  • Warehouse Name - default is oleria_connector_warehouse. Change to use an existing one if desired. Oleria Snowflake integration setup script with configurable connector names
2

Copy the generated script

Oleria generates a setup script and shows it in the Execution Script field. Copy it.Oleria side panel showing the generated Snowflake setup script
Keep this window open. You’ll come back to it after you run the script.

Run the script in Snowflake

1

Run the script in a SQL Worksheet

Open the Snowflake console and navigate to SQL Worksheet. Create a new SQL worksheet, paste the script you copied, and select Run All.Snowflake SQL Worksheet with Oleria setup script pasted and ready to run
2

Confirm completion

The script creates the OLERIA_INTEGRATION database. Its PUBLIC schema holds the MFA_POLICIES, MFA_POLICY_DESCRIPTIONS, SECURITY_INTEGRATIONS, SECURITY_INTEGRATION_DESCRIPTIONS, and TASK_LOGS tables, and the OLERIA_READ_SECURITY_INTEGRATIONS_AND_POLICIES_TASK task. These tables store policies and integration metadata that Oleria uses to generate risks and SAML SSO insights. The task is scheduled to run hourly to keep the tables up to date.
The hourly task is a serverless Snowflake task, so it consumes serverless compute credits in your Snowflake account. It doesn’t use the connector warehouse.
Snowflake SQL Worksheet output showing successfully created database and tables

Connect Snowflake to Oleria

1

Confirm script execution and authenticate

Return to the Oleria side panel, select Confirm that the script has been executed successfully, and select Authenticate.Oleria workspace Snowflake integration form with script confirmation checkbox

Verify the integration

Confirm the Snowflake instance appears on the Connected tab of your Oleria Integrations page with a status of Healthy. After the first sync completes, you can review the discovered users, roles, and role memberships, along with the risks and SAML SSO insights Oleria generates for Snowflake, in your Oleria workspace. Oleria Connected tab showing the new Snowflake instance

Remediation actions

Oleria can take the following action in Snowflake:
  • Disable a user account
The setup script doesn’t give the connector role permission to disable users. To use this action, the connector role must own the user you want to disable or hold the MANAGE GRANTS privilege on the account. For example, run this as ACCOUNTADMIN, using the role name you entered in Oleria:
The built-in ACCOUNTADMIN and SECURITYADMIN roles can already disable any user. USERADMIN doesn’t hold MANAGE GRANTS, so it can disable only users it owns. For any other role, Oleria checks for MANAGE GRANTS when it lists which actions are available, so the action shows as unavailable until the role holds that privilege. Ownership of a user is checked only when you run the action on that specific user. If the role owns that user, the action can run without MANAGE GRANTS.

Remove the integration

After you remove the Snowflake integration from Oleria, you can delete the objects the setup script created. Run the following as ACCOUNTADMIN, replacing the user, role, and warehouse names with the values you entered in Oleria:
Drop the warehouse only if the setup script created it. If you entered an existing warehouse name, the script reused that warehouse, and other workloads may depend on it. To drop a warehouse the script created, run DROP WAREHOUSE IF EXISTS oleria_connector_warehouse;.

Contact us

For questions about this integration, contact us at support@oleria.com.