Snowflake is beginning their plan to deprecate their use of single-factor authentication (Username and Password) starting in May 2025. To avoid connection errors in Tableau, you must migrate your existing Snowflake connections to a more secure authentication method. This guide provides the supported methods and steps for migration.
If unaddressed, users may see an error in the connection dialog box in Tableau Desktop when trying to use single factor (Username and Password) authentication for their Snowflake connection.
Can't connect to Snowflake
Detailed Error Message
The username or password is not valid. Check the database name and credentials and try again.
User is locked from Duo Security. Contact your local system administrator.
Cause
Environment
To continue connecting to Snowflake, you must update your Tableau data sources from Username/Password to one of the supported modern authentication methods.
Here is a summary of the recommended authentication methods and their platform support:
|
Authentication Method |
Description |
Supported Platforms |
|
OAuth / External OAuth |
(Recommended) Prompts users to sign in through a secure web pop-up. "External OAuth" allows you to use your company's identity provider, such as Okta or Microsoft Entra ID. |
Tableau Desktop, Server, Cloud, Prep |
|
Programmatic Access Token (PAT) |
Uses a token generated in Snowflake that is pasted into the password field in Tableau. For more details, see Snowflake's guide on Using programmatic access tokens for authentication. |
Tableau Desktop, Server, Cloud, Prep |
|
Key Pair Authentication |
Uses a public/private key file pair for authentication. |
Tableau Desktop, Server, Cloud (Not supported for Tableau Prep) |
Export to Sheets
Follow the steps below based on your chosen authentication method. To identify which data sources need to be updated, you can use the Tableau REST API to Query Data Source Connections.
This is often the simplest method for users.
For Published Data Sources:
In Tableau Cloud/Server, navigate to your Snowflake data source.
Select Actions > Edit Connection.
Change the Authentication dropdown from "Username and Password" to "Sign in with OAuth".
Click Save. The next time a connection is required, users will be prompted to enter their credentials in a pop-up window.
For Embedded Data Sources:
Download the workbook from Tableau Cloud/Server and open it in Tableau Desktop.
Go to the Data Source tab.
Select Data > [Your Snowflake Source] > Edit Connection.
In the connection dialog, change the Authentication to "Sign in with OAuth" and sign in when prompted.
Republish the workbook to Tableau Cloud/Server.
For Published Data Sources:
Create a PAT in Snowflake.
Navigate to the data source in Tableau Cloud/Server and click Edit Connection.
In the password field, paste your PAT and click Save.
For Embedded Data Sources:
Download the workbook and open it in Tableau Desktop.
Edit the data source connection and paste the PAT into the password field.
Republish the workbook.
For Published or Embedded Data Sources:
Download the workbook or data source and open it in Tableau Desktop.
Edit the connection and change the authentication type to Key Pair, providing your private key and passphrase.
Republish the workbook or data source to Tableau Cloud/Server.
004810953

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.