Snowflake
Last updated
Last updated
As a best practice, set up a dedicated Snowflake Service Account user and assign it a specific role and warehouse before configuring Connecty. This approach isolates your integration credentials and simplifies permission management, ensuring a seamless no-code connection.
Snowflake Account Identifier
Username and password
Role
(Optional) Database
(Optional) Warehouse
Your Snowflake account identifier consists of your organization name and account name, for example: myorg-account123
.
Examples:
✅ myorg-account123
- this is correct and expected Account Identifier.
❌ myorg.account123
- 'Data Sharing Account Identifier' with a '.' (dot) instead of '-' (hyphen) is invalid.
❌ https://myorg-account123.snowflakecomputing.com
- full Snowflake Account host URL is invalid account identifier.
To enable Connecty AI to access and query data within your Snowflake account, the designated Snowflake role must satisfy the following prerequisites:
Metadata Access
The role must be granted access to the relevant INFORMATION_SCHEMA
views in order to retrieve metadata for the target database (or selected schemas).
Read Permissions
The role must possess SELECT
privileges on all objects (tables, views, etc.) within the specified database or schema subset to enable data retrieval.
Query History Visibility The role must have rights to view the account-level query history, ensuring Connecty AI can audit and analyse past queries across the entire Snowflake account.
While Snowflake’s built-in roles (e.g., ACCOUNTADMIN
or SYSADMIN
) inherently satisfy these requirements, it is best practice to create a custom role that includes only the minimum necessary privileges outlined above.
⚠️ Warning: If the user does not have access to the Role, then the connection will fail.
The following script is an example how one can create new dedicate service account user for ConnectyAI with granted new custom role with all required permissions for a given database.
If you leave the Database field blank, the connection will be made at the Snowflake account level, giving you access to all databases based on your role permissions. To connect to a specific database—or if your permissions are scoped to a particular database—use its name here.
If you leave Warehouse blank, Snowflake will use your account’s default warehouse.
To run queries under a different warehouse, enter its name here.
Make sure the warehouse is assigned to your user.