Prerequisites
- A Snowflake account with permission to create Programmatic Access Tokens.
- The account identifier for your Snowflake instance, which combines your organization name and account name. You can find it in your Snowflake login URL (
https://app.snowflake.com/orgName/accountName/#/account/users) or under Account Details in Snowsight.
Create a Snowflake Programmatic Access Token
1
Open Snowsight User Settings
In Snowsight, open the side bar menu and select Users & roles under Governance & Security.

2
Create a new User
Click Create user in the top-right corner.

3
Create a network policy
Programmatic Access Tokens require an attached network policy that defines the IPs allowed to authenticate as this user. To create one, hover over Projects, click on Workspaces, and create a network policy. The snippet below creates one that allows access from any IP.

4
Configure user details and role
Provide a Username and assign a role. Then grant the role the privileges required for how you intend to use the connection.
To run the grant statements below, select the Projects tab and click on Workspaces to open the query editor.
To run the grant statements below, select the Projects tab and click on Workspaces to open the query editor.
- Secret Syncs
- Secret Rotations
The role must have permission to create and manage secrets in the target database. The following snippet grants the minimum privileges required for operations on specific tables and schemas.
If you select a custom role, note that secret ownership is enforced per object. Existing secrets in the target schema remain owned by their creator unless you transfer ownership. Infisical must use a role that owns every secret it manages (required for
CREATE OR REPLACE SECRET and DROP SECRET). If the schema already has secrets, run the GRANT OWNERSHIP ON ALL SECRETS ... statement; always keep the GRANT OWNERSHIP ON FUTURE SECRETS ... statement.5
Generate a Programmatic Access Token
Hover over Governance & Security and click on Users & roles. Select the user you want to use in Infisical. Open the Programmatic access tokens tab and click Generate new token. Give the token a descriptive name (e.g. 

infisical) and configure its expiration and role restrictions according to your security policy.

6
Copy the Token
Copy the generated token. Snowflake only displays it once — store it somewhere secure for the next step.

7
Copy the Snowflake Account
Copy the Account identifier. The fastest way is to read it from your Snowsight URL (


https://app.snowflake.com/orgName/accountName/#/account/users), where the identifier is orgName-accountName.Alternatively, click your username in the bottom-left corner, open Account details, and copy the Account value from the Config File tab.


Create Snowflake Connection in Infisical
- Infisical UI
- API
1
Navigate to App Connections
In your Infisical dashboard, go to Organization Settings → App Connections.

2
Select Snowflake Connection
Click Add Connection and choose Snowflake from the list of available connections.

3
Fill out Connection Form
Complete the form with:
-
A name for the connection (e.g.
snowflake-prod) - An optional description
-
The Snowflake Account identifier (e.g.
orgName-accountName) - The Snowflake Username (The name of the user that was created)
-
The Programmatic Access Token generated in the previous section
4
Connection Created
After clicking Create, Infisical validates the credentials by opening a connection to your Snowflake account. Once validated, your Snowflake Connection is ready to use.
