> For the complete documentation index, see [llms.txt](https://docs.selectstar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.selectstar.com/integrations/tableau-server/tableau-server.md).

# Tableau Server

## Requirements

* REST API and Metadata API enabled
* A valid Personal Access Token
* [Tableau Server version 2020.4.6](https://www.tableau.com/support/releases/server/2020.4.6#esdalt) (build number 20204.21.0618.0842) or later. If you need to upgrade your Tableau Server, here are a few helpful links:
  * [Preparing for Upgrade](https://help.tableau.com/current/server-linux/en-us/server-upgrade-prepare.htm)
  * [Upgrading from 2018.1 and Later (Linux)](https://help.tableau.com/current/server-linux/en-us/sug_plan.htm)

## 1. Enable REST API and Metadata API

Tableau's [REST API](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_requ.htm) and [Metadata API](https://help.tableau.com/current/api/metadata_api/en-us/index.html) **must** be enabled in order to see Tableau metadata in Select Star.

The REST API is permanently enabled for Tableau Cloud, and is enabled by default on all supported versions of Tableau Server.

To enable the Metadata API, a server admin must enable the Metadata API on Tableau Server using the `tsm maintenance metadata-services enable` command through the Tableau Services Manager (TSM) command line interface (CLI). For more information, see [Tableau Documentation](https://help.tableau.com/current/api/metadata_api/en-us/docs/meta_api_start.html#enable-the-tableau-metadata-api-for-tableau-server).

For both Tableau Cloud and Tableau Server, go to **Settings > Automatic Access to Metadata about Databases and Tables**, and make sure the checkbox is checked.

<figure><img src="/files/D4Sb0W88Ooj4PwEfIi91" alt=""><figcaption><p>Automatic Access to Metadata about Databases and Tables</p></figcaption></figure>

{% hint style="info" %}
**Tableau Cloud** can take some time to populate the Metadata Database if you have a big amount of Workbooks in Tableau Cloud.
{% endhint %}

## 2. Create a Personal Access Token

Navigate to **My Account Settings** on the top right of the screen.

![My Account Settings](/files/TeuqLewpc3hoklGBOsg0)

Scroll down to **Personal Access Tokens**.

Enter a name for your token and click **Create new token.**

{% hint style="info" %}
The user you connect to with Select Star needs a **Site Administrator Explorer** role at minimum in order for Select Start to retrieve all the necessary metadata from the Tableau API.
{% endhint %}

![](/files/1zHnrReBTewCpMdy7mMP)

Copy the **Token Secret** from the popup and store it somewhere safe. You will need it later on during this setup.

## 3. Grant access to Tableau Server database (Tableau Server)

{% hint style="info" %}
**Tableau Server**: This step is only applicable if you have a Tableau Server instance. Jump to Step 4 if you are connecting Tableau Cloud.
{% endhint %}

Tableau Server uses an [External Repository](https://help.tableau.com/current/server/en-us/server_external_repo.htm) to store *data about all user interactions, extract refreshes, and more*. **Select Star needs access to this External Repository in Postgres** to properly generate lineage and popularity for Tableau and its data sources.

To provide access, create a new database user with access to all of the following tables in the `public` schema (table and row level):

* public.hist\_users
* public.hist\_views
* public.historical\_events
* public.system\_users
* public.users
* public.views

{% hint style="warning" %}
Note for advanced Postgres setups with **Row-Level Security (RLS)**

\
If your PostgreSQL instance has Row-Level Security (RLS) enabled on any of the above tables (e.g. users, views), the new user may not see any data — even with SELECT permissions.

```
-- Check if RLS is enabled
SELECT relname, relrowsecurity FROM pg_class WHERE relname IN ('users', 'views');
```

In that case, you’ll need to grant access at the row level by adding a policy like:

```
-- For the users table
CREATE POLICY selectstar_users_access
ON public.users
FOR SELECT
TO selectstar_user
USING (true);

-- For the views table
CREATE POLICY selectstar_views_access
ON public.views
FOR SELECT
TO selectstar_user
USING (true);
```

{% endhint %}

{% hint style="info" %}
If your PostgreSQL External repository is located in a private network (Firewalls, SSH, VPN, etc), we also offer the option to sync this information from Snowflake. All we need is the same information transferred to your Snowflake instance.

Contact <support@getselectstar.com> if you have any questions regarding this step.
{% endhint %}

## 4. Create a Tableau Data Source

1. Go to the Select Star **Settings > Data**
2. Click **+ Add** to create a new Data Source.

Fill out the set up form with the information as outlined below.

* **Display Name:** Give your data source a meaningful name, the default is Tableau.
* **Access Token Name:** The Personal Access Token Name.
* **Access Token Secret:** The Personal Access Token Secret.
* **Base Url:** The main URL for your site, such as `https://10ax.online.tableau.com`
* **Site Id:** The name of your site in tableau. You can extract this from the URL you access in Tableau. Example, ***analytics*** is the name of the site for the URL `https://10ax.online.tableau.com/#/site/analytics/home`.

Click the **Connect** button at the bottom of the modal.

<figure><img src="/files/iySXTJh38qD0fAVATtKY" alt=""><figcaption></figcaption></figure>

## 5. Connect Tableau External Repository (Tableau Server)

To connect Tableau External Repository, use the details of the user, database, and schema that you granted access to in Step 3 for Tableau Server. Select Star will connect to

Introduce the details in the setup form as shown in the example below.

<figure><img src="/files/vCx1xNtH03X0seB0Bky9" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**IP Whitelisting**\
For any instance located in a private network, you must either

* whitelist the following two IP addresses to connect Select Star: `3.23.108.85`, `3.20.56.105`
* Configure the External Repository exporting your activity data to Snowflake. Reach out to <support@getselectstar.com> for more information about this step.
  {% endhint %}

Your metadata should start loading automatically. Please allow 24-48 hours to completely generate popularity and lineage.

When the sync is complete, you'll be able to explore Tableau in Select Star. See the link below for more information on Tableau in Select Star.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.selectstar.com/integrations/tableau-server/tableau-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
