Snowflake Connector
Overview
This document details the secure Snowflake connector setup for a fictitious organization AcmeCorp’s use of the system. The setup involves creating a dedicated read-only role (e.g.,AIDNN_READONLY_ROLE) and granting it the necessary permissions for production databases (e.g., ACMECORP_PROD). You can use any role name and choose any database(s) you wish. The role is then assigned to the service user and granted access to the designated analysis warehouse.
The system will use this setup to run analyses on all specified Snowflake databases. A Personal Access Token (PAT) will be created for the service user and role combination for authentication.
Please note: This is one of the ways to set up this access which we recommend. However, depending upon your specific environment, your Snowflake admin would be able to guide you appropriately.
Role Creation and Database Permissions
The following SQL commands establish the dedicated read-only role and grant it necessaryUSAGE and SELECT permissions on the ACMECORP_PROD database, including permissions on future objects to ensure the system maintains read access as the schema evolves.
Creating the Service User
Create a service account user to be used by the system as follows:Granting Role to the Service User
Assign theAIDNN_READONLY_ROLE to the service account user:
Warehouse Access
GrantUSAGE privilege on the analysis warehouse so the role can execute queries:
Personal Access Token (PAT) Creation
The final step is to generate a Personal Access Token (PAT) for theAIDNN_SERVICE_USER using the AIDNN_READONLY_ROLE. This PAT will be configured in the connector application for secure authentication.
Action Required: Create the PAT for AIDNN_SERVICE_USER and AIDNN_READONLY_ROLE.
This PAT can be generated programmatically as well:
Setting up the Snowflake Connector
To setup a Snowflake connector, once you’re within the workstation from Home, choose Connectors from the left side panel as shown in the image below:




Connector Configuration
On the New Snowflake Service page, the Name field provides a text box for entering the connector name. This value can be any user-defined name and will be displayed as the connector name after setup is complete. You can also include a description about the connector to provide more context, however it is optional. The second part of the page collects all the details related to the connection:
General Fields
- Name (required): Provide a name for the connector.
- Description (optional): Add a description to provide more context about the connector.
Credential Configuration
- Username: Enter your Snowflake username associated with the account that will be used to authenticate the connection.
-
Account: Enter your Snowflake account identifier (for example:
xy12345.us-east-1). This identifies the Snowflake account the connector will connect to. - Warehouse: Specify the Snowflake virtual warehouse to be used for query execution.
- Password: Enter the password for the specified Snowflake user account (this may be a Personal Access Token provided by your Snowflake Admin).
- Advanced Configuration Options (optional): Typically not required unless your username and password/PAT is configured to only use a specific role, database, etc. If so, ask your Snowflake Admin for these details.
Testing the Connection
After entering the credentials, click Test Connector to verify that the connector can successfully authenticate and access the Snowflake account. This test checks:- Account validity
- User credentials
- Warehouse access
- Required permissions


Adding the Connector
After a successful test, click Add to create and save the new connector:

Syncing Metadata
Within the Sync Metadata section, select the database you want to synchronize. This determines which database metadata will be fetched and made available through the connector during the sync process:

- The process enters the workflow state
- The sync status displays current progress
- You can monitor the workflow to see what steps are being executed
- After completion, the status updates to Completed
- The connector becomes available for use

Managing Connectors
Archive a Connector
To archive an existing connector, navigate to the Connector page and select the relevant connector name. In the connector details view, click the three-dot (more options) menu located at the top right of the screen and select Archive. This action archives the entire connector and removes it from active use.