In Tableau Cloud or Tableau Server, an extract refresh for a workbook or data source, or a Tableau Prep flow run, using a Salesforce, Google Analytics, or Google BigQuery connection fails with an authentication or refresh token error.
Additionally, opening a view with a live connection to one of these data sources prompts users to sign in to the underlying database.
The OAuth access or refresh token has expired, been revoked, or lacks sufficient permissions.
Tableau manages OAuth credentials for Salesforce and Google BigQuery using one of two distinct methods:
Saved Credentials are OAuth tokens managed individually by each user under My Account Settings > Saved Credentials for Data Sources in Tableau Cloud or Tableau Server. These credentials are tied to an individual user account. This method is used when Embed <data source account> is selected during publishing from Tableau Desktop or Tableau Prep Builder, or when credentials are saved via web authoring or by Edit Connections.
OAuth tokens generated by the provider for Tableau Cloud or Tableau Server and shared across all users on the same site. These credentials are managed at the site level and do not appear under the personal My Account Settings page. This method is used when a workbook or data source is published from Tableau Desktop with the Embedded password option selected.
To confirm which method is currently in use, navigate to the content's Connections tab (or Data Sources tab), click the actions menu (...), and select Edit Connection. If the managed keychain is in use, the following warning message appears:
One of your connections is using a managed keychain for embedded credentials. The managed keychain option won't be available once you change the authentication.
Use the appropriate option below based on the credential management method in use.
When checking the workbook Data Sources tab (with Show As set to Connections), or published data source Connections tab, confirm that the authentication field displays Embedded in connection.
To switch content from saved credentials to the managed keychain, republish the workbook or data source from Tableau Desktop using Option 2.
To switch content from the managed keychain to saved credentials, go to the Connections tab (or Data Sources tab) in the web UI, click the actions menu (...), select Edit Connection, open the authentication dropdown, select Add a New <Data source> Account, complete OAuth authentication, and click Save.
For Tableau Server, saved credentials require a custom OAuth client configured at the server or site level. For more details, see Change Salesforce.com OAuth to Saved Credentials and Set up OAuth for Google.
005459308

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.