Skip to main content
This is an updated and improved version of the Snowflake connector! If you’re setting up Snowflake with C1 for the first time, you’re in the right place.

Capabilities

ResourceSyncProvision
Accounts
Account roles
Databases
Tables
Secrets - RSA public keys
The Snowflake connector supports account provisioning. This connector can sync secrets and display them on the Inventory page.

Gather Snowflake credentials

Configuring the connector requires you to pass in credentials generated in Snowflake. Gather these credentials before you move on.
For best results, use a dedicated service account. C1 will use the DEFAULT_WAREHOUSE, DEFAULT_NAMESPACE, and DEFAULT_ROLE properties of the user used for the integration. For this reason, we recommend creating a dedicated service account in Snowflake for integrating with C1 with these default user properties.Give the service account the MONITOR USAGE and MANAGE GRANTS global permissions for the default warehouse and namespace, plus the MONITOR privilege on each user secret and database.

Generate a private key and set the public key on a Snowflake user

1
Generate an unencrypted private key in PEM format by running the following command:
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
2
Next, use the private key to generate the public key. Run the following command:
openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub
3
To enable public key authentication for a Snowflake user, execute the following ALTER USER command. A user with the ACCOUNTADMIN role must perform this operation:
ALTER USER <SNOWFLAKEUSER> SET RSA_PUBLIC_KEY='MIIBIj...';
Tip: When setting the RSA_PUBLIC_KEY, extract the key content between the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- lines from your public key file. Do not include the header or footer. The key should be a single continuous string.
4
Carefully save the private key.

Look up your account identifier

1
Find your account identifier by navigating in the Snowflake console to your account, selecting your user, and finding the alphanumeric code listed under Locator.
That’s it! Next, move on to the connector configuration instructions.

Configure the Snowflake connector

To complete this task, you’ll need:
  • The Connector Administrator or Super Administrator role in C1
  • Access to the set of Snowflake credentials generated by following the instructions above
Follow these instructions to use a built-in, no-code connector hosted by C1.
1
In C1, navigate to Integrations > Connectors and click Add connector.
2
Search for Snowflake v2 and click Add.
3
Choose how to set up the new Snowflake connector:
  • Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren’t yet managed with C1)
  • Add the connector to a managed app (select from the list of existing managed apps)
  • Create a new managed app
4
Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of C1 users. Setting multiple owners is allowed.If you choose someone else, C1 will notify the new connector owner by email that their help is needed to complete the setup process.
5
Click Next.
6
Find the Settings area of the page and click Edit.
7
In the Account URL field, enter the full URL of your Snowflake instance.
8
In the Account ID / Locator field, enter your Snowflake account identifier.
9
In the Username field, enter your Snowflake username.
10
In the RSA Private Key (PEM Format) field, upload the private key file.
11
Optional. Enable Sync secrets to display them on the Inventory page.
12
Click Save.
13
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.
That’s it! Your Snowflake connector is now pulling access data into C1.

Troubleshooting the Snowflake v2 connector

4xx errors

If you’re seeing a 422 unprocessable entity or 401 unauthorized error in the logs, make sure that your service account has the DEFAULT_WAREHOUSEproperty, and that you’ve correctly looked up your Snowflake account identifier.

User fields (LOGIN, DISPLAY_NAME, etc.) are empty in synced data

If user records are syncing but fields such as LOGIN, DISPLAY_NAME, and others are empty, with no other errors, checking the following:
  • Ensure that the service account has a role granted. If the service account has a default role set, but no roles granted, user data will not sync correctly. Grant the default role to the service account to resolve this issue.
  • Ensure the MANAGE GRANTS privilege is granted directly to the service account user (not inherited via a role). Use the following steps to grant the privilege directly:
USE ROLE ACCOUNTADMIN;
GRANT MANAGE GRANTS ON ACCOUNT TO USER <SERVICE ACCOUNT>;