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.
  • MFA and SSO configuration - per-user MFA enrollment and SAML SSO settings.
  • 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 copy the 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. 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 database, tables, and tasks. 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 I have run the above commands in Snowflake, 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

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.