Skip to content

Tableau

Tableau dashboards, worksheets, data sources, users, jobs, flows and lineage as SQL tables, read-only

Connector software
Free and open source
Service credentials
Required
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/tableau/index.md to help me query Tableau with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

Find your ten most-viewed dashboards

Uses your connected account. Set up the connector and credentials to run it with your data.

SELECT title, folder_path, view_count
FROM tableau.main.dashboards
ORDER BY view_count DESC
LIMIT 10

Quick start

Choose where to run Tableau, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach the release directly

Downloads the latest release for your platform and caches it locally.

ATTACH 'tableau' AS tableau (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/vgi-tableau'
);

3. Add service credentials

After attaching, create the secret for the service you want to query in the same SQL session. Replace the placeholders with your service settings.

tableau credentials

Tableau server URL and site plus a personal access token or a connected app (direct trust)

Get these credentials β†’
secret.sql
CREATE SECRET tableau (
    TYPE tableau,
    server_url       '<server_url>',
    site_content_url '<site_content_url>',
    pat_name         '<pat_name>',
    pat_secret       '<TABLEAU_PAT_SECRET>',  -- secret
    client_id        '<client_id>',
    secret_id        '<secret_id>',
    secret_value     '<TABLEAU_SECRET_VALUE>',  -- secret
    username         '<username>',
    scopes           '<scopes>',
    api_version      '<api_version>',
    page_size        '<page_size>'
);
Credential fields and requirements β†’

4. Run a query

query.sql
SELECT title, folder_path, view_count
FROM tableau.main.dashboards
ORDER BY view_count DESC
LIMIT 10
More example queries β†’
Technical details
Verified connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach the release directly

Uses the verified release each time you attach the connector.

ATTACH 'tableau' AS tableau (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/[email protected]'
);

Overview

Tableau Cloud and Tableau Server metadata and usage as SQL: dashboards, worksheets, workbooks, data sources, connections, users, jobs, Prep flows and Metadata API lineage, read-only.

Catalog

Everything tableau exposes once attached β€” read straight from the worker's released build.

tableau 2 schemas
main 23 tables

Read-only Tableau site content, people, usage, operations and Metadata API lineage.

Schema examples (12)
Examples (12)

The ten most viewed dashboards

SELECT title, folder_path, view_count
FROM tableau.main.dashboards
ORDER BY view_count DESC
LIMIT 10;

Dashboards and views per folder

SELECT folder_path, count(*) AS dashboards, sum(view_count) AS views
FROM tableau.main.dashboards
GROUP BY folder_path
ORDER BY views DESC;

Worksheet count per workbook

SELECT workbook_name, count(*) AS charts
FROM tableau.main.charts
GROUP BY workbook_name
ORDER BY charts DESC;

Worksheets nobody has viewed

SELECT title, workbook_name
FROM tableau.main.charts
WHERE view_count = 0
ORDER BY workbook_name, title;
8 more examples

Custom SQL queries and how many workbooks use them

SELECT title, connection_type, len(workbook_ids) AS workbooks
FROM tableau.main.queries
ORDER BY workbooks DESC;

Custom SQL Tableau cannot trace lineage through

SELECT title, query_text
FROM tableau.main.queries
WHERE is_unsupported_custom_sql
ORDER BY title;

Licenses by site role

SELECT site_role, count(*) AS users
FROM tableau.main.users
GROUP BY site_role
ORDER BY users DESC;

Creators ordered by how long since they last signed in

SELECT name, site_role, last_login
FROM tableau.main.users
WHERE site_role = 'Creator'
ORDER BY last_login NULLS FIRST;

The project tree

SELECT folder_path, owner FROM tableau.main.folders ORDER BY folder_path;

Dashboards per folder, including empty folders

SELECT f.folder_path, count(d.id) AS dashboards
FROM tableau.main.folders f
LEFT JOIN tableau.main.dashboards d USING (folder_path)
GROUP BY f.folder_path
ORDER BY dashboards DESC;

Total views per workbook

SELECT workbook_name, sum(view_count) AS views
FROM tableau.main.content_usage
GROUP BY workbook_name
ORDER BY views DESC;

Views that have never been opened

SELECT title, sheet_type, folder_path
FROM tableau.main.content_usage
WHERE view_count = 0
ORDER BY folder_path, title;
Tables
charts 2 examples19 cols

Tableau worksheets (views of sheet type worksheet), with usage counts

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
Tableau LUID of the worksheet.
title VARCHAR
Name of the worksheet.
folder_path VARCHAR
Slash-separated path of the project (folder) holding the worksheet, e.g. 'Finance/Quarterly'.
owner VARCHAR
Username of the worksheet's owner.
created_at TIMESTAMP WITH TIME ZONE
When the worksheet was created.
updated_at TIMESTAMP WITH TIME ZONE
When the worksheet was last updated (republished).
last_viewed_at TIMESTAMP WITH TIME ZONE
Always NULL: the Tableau REST API does not expose last-viewed times (use content_usage.view_count).
view_count BIGINT
Total views of the worksheet (Tableau usage statistics).
url VARCHAR
Web URL of the worksheet on the Tableau site.
sheet_type VARCHAR
Tableau sheet type: worksheet, dashboard or story.
content_url VARCHAR
The view's content URL (Workbook/sheets/View).
view_url_name VARCHAR
The view's URL name.
workbook_id VARCHAR
LUID of the workbook containing the view.
workbook_name VARCHAR
Name of the workbook containing the view.
project_id VARCHAR
LUID of the project (folder) holding the view.
project_name VARCHAR
Name of the project (folder) holding the view.
owner_id VARCHAR
LUID of the owner.
tags VARCHAR[]
Tag labels on the view.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (workbook_id) REFERENCES workbooks(id) Β· FOREIGN KEY (project_id) REFERENCES folders(id) Β· FOREIGN KEY (owner_id) REFERENCES users(id)
Examples (2)

Worksheet count per workbook

SELECT workbook_name, count(*) AS charts
FROM tableau.main.charts
GROUP BY workbook_name
ORDER BY charts DESC;

Worksheets nobody has viewed

SELECT title, workbook_name
FROM tableau.main.charts
WHERE view_count = 0
ORDER BY workbook_name, title;
Link
connections 2 examples13 cols

Database connections of published data sources and workbooks (never passwords)

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
Connection LUID.
content_type VARCHAR
'datasource' or 'workbook'.
content_id VARCHAR
LUID of the data source or workbook.
content_name VARCHAR
Name of the data source or workbook.
connection_type VARCHAR
Connection class, e.g. snowflake, postgres, sqlproxy.
server_address VARCHAR
Database server host name.
server_port VARCHAR
Database server port.
username VARCHAR
Database user name the connection signs in as (no password).
embed_password BOOLEAN
Whether a password is embedded (the password itself is never exposed).
query_tagging_enabled BOOLEAN
Whether query tagging is enabled.
datasource_id VARCHAR
LUID of the data source the connection belongs to.
datasource_name VARCHAR
Name of the data source the connection belongs to.
ConstraintsPRIMARY KEY (id)
Examples (2)

Which database servers Tableau content connects to

SELECT connection_type, server_address, count(*) AS connections
FROM tableau.main.connections
GROUP BY ALL
ORDER BY connections DESC;

Data sources with an embedded database password

SELECT content_name, username
FROM tableau.main.connections
WHERE content_type = 'datasource' AND embed_password
ORDER BY content_name;
Link
content_usage 2 examples12 cols

View counts for every Tableau view (dashboards, stories and worksheets)

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
content_type VARCHAR
Always 'view' (Tableau reports usage per view).
content_idnot null VARCHAR
LUID of the view.
title VARCHAR
Name of the view.
sheet_type VARCHAR
worksheet, dashboard or story.
workbook_id VARCHAR
LUID of the workbook containing the view.
workbook_name VARCHAR
Name of the workbook containing the view.
folder_path VARCHAR
Slash-separated project path holding the view.
owner VARCHAR
Username of the view's owner.
view_count BIGINT
All-time total views (usage.totalViewCount).
last_viewed_at TIMESTAMP WITH TIME ZONE
Always NULL: the Tableau REST API does not expose last-viewed times.
url VARCHAR
Web URL of the view.
ConstraintsPRIMARY KEY (content_id) Β· FOREIGN KEY (workbook_id) REFERENCES workbooks(id)
Examples (2)

Total views per workbook

SELECT workbook_name, sum(view_count) AS views
FROM tableau.main.content_usage
GROUP BY workbook_name
ORDER BY views DESC;

Views that have never been opened

SELECT title, sheet_type, folder_path
FROM tableau.main.content_usage
WHERE view_count = 0
ORDER BY folder_path, title;
Link
dashboards 2 examples19 cols

Tableau dashboards and stories (views of sheet type dashboard/story), with usage counts

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
Tableau LUID of the dashboard.
title VARCHAR
Name of the dashboard.
folder_path VARCHAR
Slash-separated path of the project (folder) holding the dashboard, e.g. 'Finance/Quarterly'.
owner VARCHAR
Username of the dashboard's owner.
created_at TIMESTAMP WITH TIME ZONE
When the dashboard was created.
updated_at TIMESTAMP WITH TIME ZONE
When the dashboard was last updated (republished).
last_viewed_at TIMESTAMP WITH TIME ZONE
Always NULL: the Tableau REST API does not expose last-viewed times (use content_usage.view_count).
view_count BIGINT
Total views of the dashboard (Tableau usage statistics).
url VARCHAR
Web URL of the dashboard on the Tableau site.
sheet_type VARCHAR
Tableau sheet type: worksheet, dashboard or story.
content_url VARCHAR
The view's content URL (Workbook/sheets/View).
view_url_name VARCHAR
The view's URL name.
workbook_id VARCHAR
LUID of the workbook containing the view.
workbook_name VARCHAR
Name of the workbook containing the view.
project_id VARCHAR
LUID of the project (folder) holding the view.
project_name VARCHAR
Name of the project (folder) holding the view.
owner_id VARCHAR
LUID of the owner.
tags VARCHAR[]
Tag labels on the view.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (workbook_id) REFERENCES workbooks(id) Β· FOREIGN KEY (project_id) REFERENCES folders(id) Β· FOREIGN KEY (owner_id) REFERENCES users(id)
Examples (2)

The ten most viewed dashboards

SELECT title, folder_path, view_count
FROM tableau.main.dashboards
ORDER BY view_count DESC
LIMIT 10;

Dashboards and views per folder

SELECT folder_path, count(*) AS dashboards, sum(view_count) AS views
FROM tableau.main.dashboards
GROUP BY folder_path
ORDER BY views DESC;
Link
data_alerts 2 examples13 cols

Tableau data-driven alerts with recipient counts (no recipient identities)

Columns
idnot null VARCHAR
Alert LUID.
subject VARCHAR
Alert subject.
frequency VARCHAR
once, frequently, hourly, daily or weekly.
public BOOLEAN
Whether others can add themselves to the alert.
owner_id VARCHAR
Owner's user LUID.
owner_masked VARCHAR
Owner's username, masked.
view_id VARCHAR
LUID of the view the alert watches.
view_name VARCHAR
Name of the view.
workbook_id VARCHAR
LUID of the view's workbook.
workbook_name VARCHAR
Name of the view's workbook.
created_at TIMESTAMP WITH TIME ZONE
When the alert was created.
updated_at TIMESTAMP WITH TIME ZONE
When the alert was last updated.
recipient_count INTEGER
Number of recipients (identities are not exposed).
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (owner_id) REFERENCES users(id) Β· FOREIGN KEY (workbook_id) REFERENCES workbooks(id)
Examples (2)

Alerts with the widest audience

SELECT view_name, subject, recipient_count
FROM tableau.main.data_alerts
ORDER BY recipient_count DESC;

Alerts by check frequency

SELECT frequency, count(*) AS alerts
FROM tableau.main.data_alerts
GROUP BY frequency
ORDER BY alerts DESC;
Link
data_sources 2 examples22 cols

Published Tableau data sources, with certification and extract flags

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
Tableau LUID of the data source.
title VARCHAR
Name of the data source.
folder_path VARCHAR
Slash-separated path of the project (folder) holding the data source, e.g. 'Finance/Quarterly'.
owner VARCHAR
Username of the data source's owner.
created_at TIMESTAMP WITH TIME ZONE
When the data source was created.
updated_at TIMESTAMP WITH TIME ZONE
When the data source was last updated (republished).
last_viewed_at TIMESTAMP WITH TIME ZONE
Always NULL: the Tableau REST API does not expose last-viewed times (use content_usage.view_count).
view_count BIGINT
Count of views; always NULL here because Tableau reports view counts for views only.
url VARCHAR
Web URL of the data source on the Tableau site.
datasource_type VARCHAR
Connection class of the data source (e.g. snowflake, sqlserver, hyper).
description VARCHAR
Owner-written description of the data source.
content_url VARCHAR
Content URL name.
is_certified BOOLEAN
Whether the data source is certified.
certification_note VARCHAR
Free-text note the certifier left explaining why the source is trusted.
has_extracts BOOLEAN
Whether the data source has an extract.
encrypt_extracts BOOLEAN
Whether its extracts are encrypted.
use_remote_query_agent BOOLEAN
Whether it connects through Tableau Bridge.
project_id VARCHAR
Project LUID.
project_name VARCHAR
Name of the project (folder) holding the item, without its parents.
owner_id VARCHAR
Owner's user LUID.
tags VARCHAR[]
Tag labels.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (project_id) REFERENCES folders(id) Β· FOREIGN KEY (owner_id) REFERENCES users(id)
Examples (2)

Certified data sources (pushed down as isCertified:eq:true)

SELECT title, datasource_type, folder_path
FROM tableau.main.data_sources
WHERE is_certified
ORDER BY title;

Data sources and extracts per connection type

SELECT datasource_type, count(*) AS sources,
  count(*) FILTER (WHERE has_extracts) AS extracts
FROM tableau.main.data_sources
GROUP BY datasource_type
ORDER BY sources DESC;
Link
extract_refresh_tasks 2 examples11 cols

Scheduled extract refresh tasks for data sources and workbooks

Columns
idnot null VARCHAR
Task LUID.
refresh_type VARCHAR
FullRefresh or IncrementalRefresh.
priority INTEGER
Task priority from 1 (highest) to 100 (lowest).
consecutive_failed_count INTEGER
How many runs in a row have failed.
content_type VARCHAR
datasource or workbook.
content_id VARCHAR
LUID of the data source or workbook refreshed.
schedule_id VARCHAR
Schedule LUID (Tableau Server).
schedule_frequency VARCHAR
Hourly, Daily, Weekly or Monthly.
schedule_next_run_at TIMESTAMP WITH TIME ZONE
Next scheduled run.
schedule_state VARCHAR
Active or Suspended (Tableau Server).
frequency_details JSON
Schedule start/end times and intervals as JSON.
ConstraintsPRIMARY KEY (id)
Examples (2)

Extract refreshes that keep failing

SELECT t.content_type, coalesce(d.title, w.name) AS content,
  t.consecutive_failed_count
FROM tableau.main.extract_refresh_tasks t
LEFT JOIN tableau.main.data_sources d ON d.id = t.content_id
LEFT JOIN tableau.main.workbooks w ON w.id = t.content_id
WHERE t.consecutive_failed_count > 0
ORDER BY t.consecutive_failed_count DESC;

Extract refresh tasks per frequency

SELECT schedule_frequency, count(*) AS tasks
FROM tableau.main.extract_refresh_tasks
GROUP BY schedule_frequency
ORDER BY tasks DESC;
Link
favorites 2 examples7 cols

Each Tableau user's favorited views, workbooks, data sources and projects

Columns
user_idnot null VARCHAR
LUID of the user who favorited the item.
label VARCHAR
The favorite's label.
content_type VARCHAR
view, workbook, datasource, project, flow, metric or collection.
content_idnot null VARCHAR
LUID of the favorited item.
content_name VARCHAR
Name of the favorited item.
position INTEGER
Position in the user's favorites list.
added_at TIMESTAMP WITH TIME ZONE
When the favorite was added.
ConstraintsPRIMARY KEY (user_id, content_id) Β· FOREIGN KEY (user_id) REFERENCES users(id)
Examples (2)

Most favorited views

SELECT content_name, count(*) AS favorited_by
FROM tableau.main.favorites
WHERE content_type = 'view'
GROUP BY content_name
ORDER BY favorited_by DESC;

Favorites per user

SELECT u.name, count(f.content_id) AS favorites
FROM tableau.main.users u
LEFT JOIN tableau.main.favorites f ON f.user_id = u.id
GROUP BY u.name
ORDER BY favorites DESC;
Link
field_lineage 2 examples12 cols

Field-to-column lineage of workbooks and published data sources (Metadata API)

Columns
content_type VARCHAR
workbook or datasource.
content_id VARCHAR
LUID of the workbook or published data source.
content_name VARCHAR
Name of the workbook or data source.
datasource_name VARCHAR
Embedded data source name (workbooks) or the data source's own name.
field_name VARCHAR
Tableau field name.
field_type VARCHAR
ColumnField, CalculatedField, BinField, GroupField, …
formula VARCHAR
Formula of a calculated field.
upstream_database VARCHAR
Database of the upstream column.
upstream_schema VARCHAR
Schema of the upstream column.
upstream_table VARCHAR
Table of the upstream column.
upstream_column VARCHAR
Upstream database column name.
upstream_qualified_table VARCHAR
Lower-cased database.schema.table of the upstream column.
Examples (2)

Calculated fields of one workbook

SELECT field_name, formula
FROM tableau.main.field_lineage
WHERE field_type = 'CalculatedField' AND content_name = 'Sales Overview'
ORDER BY field_name;

Most used warehouse columns

SELECT upstream_qualified_table, upstream_column,
  count(DISTINCT content_id) AS used_by
FROM tableau.main.field_lineage
WHERE upstream_column IS NOT NULL
GROUP BY ALL
ORDER BY used_by DESC;
Link
flow_runs 2 examples9 cols

Run history of Tableau Prep flows with status and duration

Columns
idnot null VARCHAR
Flow run LUID.
flow_id VARCHAR
LUID of the flow.
flow_name VARCHAR
Name of the flow.
status VARCHAR
Success, Failed, InProgress, Pending or Cancelled.
progress INTEGER
Percent complete, 0 to 100.
started_at TIMESTAMP WITH TIME ZONE
When the run started.
completed_at TIMESTAMP WITH TIME ZONE
When the run completed.
duration_seconds DOUBLE
completed_at βˆ’ started_at in seconds.
background_job_id VARCHAR
LUID of the background job.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (flow_id) REFERENCES flows(id)
Examples (2)

Failed flow runs

SELECT flow_name, status, started_at
FROM tableau.main.flow_runs
WHERE status = 'Failed'
ORDER BY started_at DESC;

Average run time per flow

SELECT flow_name, avg(duration_seconds) AS avg_seconds
FROM tableau.main.flow_runs
GROUP BY flow_name
ORDER BY avg_seconds DESC;
Link
flows 2 examples13 cols

Tableau Prep flows published to the site

Columns
idnot null VARCHAR
Flow LUID.
name VARCHAR
Flow name.
description VARCHAR
Owner-written description of the flow.
folder_path VARCHAR
Slash-separated project path.
project_id VARCHAR
Project LUID.
project_name VARCHAR
Name of the project (folder) holding the item, without its parents.
owner VARCHAR
Owner's username.
owner_id VARCHAR
Owner's user LUID.
file_type VARCHAR
tfl or tflx.
url VARCHAR
Web URL of the flow.
created_at TIMESTAMP WITH TIME ZONE
When the flow was created.
updated_at TIMESTAMP WITH TIME ZONE
When the flow was last published.
tags VARCHAR[]
Tag labels.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (project_id) REFERENCES folders(id) Β· FOREIGN KEY (owner_id) REFERENCES users(id)
Examples (2)

All Prep flows

SELECT name, folder_path, owner FROM tableau.main.flows ORDER BY name;

Run count per flow

SELECT f.name, count(r.id) AS runs
FROM tableau.main.flows f
LEFT JOIN tableau.main.flow_runs r ON r.flow_id = f.id
GROUP BY f.name
ORDER BY runs DESC;
Link
folders 2 examples18 cols

Tableau projects (folders) with their full path

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
Tableau LUID of the project.
title VARCHAR
Name of the project.
folder_path VARCHAR
The project's own full path, e.g. 'Finance/Quarterly' (equals folder_path of content inside it).
owner VARCHAR
Username of the project's owner.
created_at TIMESTAMP WITH TIME ZONE
When the project was created.
updated_at TIMESTAMP WITH TIME ZONE
When the project was last updated (republished).
last_viewed_at TIMESTAMP WITH TIME ZONE
Always NULL: the Tableau REST API does not expose last-viewed times (use content_usage.view_count).
view_count BIGINT
Count of views; always NULL here because Tableau reports view counts for views only.
url VARCHAR
Always NULL for projects.
description VARCHAR
Project description.
parent_id VARCHAR
LUID of the parent project; NULL for a top-level project.
parent_path VARCHAR
Full path of the parent project; NULL for a top-level project.
top_level BOOLEAN
True for a top-level project.
depth INTEGER
Count of nesting levels above the project: 0 for a top-level project.
content_permissions VARCHAR
ManagedByOwner, LockedToProject or LockedToProjectWithoutNested.
controlling_permissions_project_id VARCHAR
LUID of the project whose permissions govern this one.
owner_id VARCHAR
Owner's user LUID.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (owner_id) REFERENCES users(id) Β· FOREIGN KEY (parent_id) REFERENCES folders(id)
Examples (2)

The project tree

SELECT folder_path, owner FROM tableau.main.folders ORDER BY folder_path;

Dashboards per folder, including empty folders

SELECT f.folder_path, count(d.id) AS dashboards
FROM tableau.main.folders f
LEFT JOIN tableau.main.dashboards d USING (folder_path)
GROUP BY f.folder_path
ORDER BY dashboards DESC;
Link
group_members 2 examples5 cols

Members of each Tableau group, one row per group and user

Columns
group_idnot null VARCHAR
Group LUID.
group_name VARCHAR
Display name of the group, e.g. 'All Users'.
user_idnot null VARCHAR
User LUID.
user_name VARCHAR
The member's username (an email address on Tableau Cloud).
site_role VARCHAR
The member's site role.
ConstraintsPRIMARY KEY (group_id, user_id) Β· FOREIGN KEY (group_id) REFERENCES groups(id) Β· FOREIGN KEY (user_id) REFERENCES users(id)
Examples (2)

Group sizes

SELECT group_name, count(*) AS members
FROM tableau.main.group_members
GROUP BY group_name
ORDER BY members DESC;

Members of the Finance group

SELECT m.user_name
FROM tableau.main.group_members m
JOIN tableau.main.groups g ON g.id = m.group_id
WHERE g.name = 'Finance'
ORDER BY 1;
Link
groups 2 examples5 cols

Tableau groups (local and directory-synced)

Columns
idnot null VARCHAR
Group LUID.
name VARCHAR
Group name.
domain_name VARCHAR
Directory domain ('local' for local groups).
minimum_site_role VARCHAR
Site role granted on sign-in, if configured.
grant_license_mode VARCHAR
onSync / onLogin when a license is granted automatically.
ConstraintsPRIMARY KEY (id)
Examples (2)

All groups

SELECT name, domain_name FROM tableau.main.groups ORDER BY name;

Local versus directory groups

SELECT domain_name, count(*) AS groups
FROM tableau.main.groups
GROUP BY domain_name
ORDER BY groups DESC;
Link
jobs 2 examples10 cols

Tableau background jobs (extract refreshes, flow runs, subscriptions …)

Columns
idnot null VARCHAR
Job LUID.
job_type VARCHAR
Job type, e.g. refresh_extracts, increment_extracts, run_flow.
status VARCHAR
Pending, InProgress, Success, Failed or Cancelled.
title VARCHAR
Name of the content the job ran for.
subtitle VARCHAR
Kind of content (e.g. Data Source, Workbook, Flow).
priority INTEGER
Job priority from 1 (highest) to 100 (lowest).
created_at TIMESTAMP WITH TIME ZONE
When the job was queued.
started_at TIMESTAMP WITH TIME ZONE
When the job started.
ended_at TIMESTAMP WITH TIME ZONE
When the job ended.
duration_seconds DOUBLE
ended_at βˆ’ started_at in seconds.
ConstraintsPRIMARY KEY (id)
Examples (2)

Failed jobs, most recent first (status pushed to Tableau)

SELECT title, job_type, ended_at
FROM tableau.main.jobs
WHERE status = 'Failed'
ORDER BY ended_at DESC;

Average successful job duration per type

SELECT job_type, avg(duration_seconds) AS avg_seconds
FROM tableau.main.jobs
WHERE status = 'Success'
GROUP BY job_type
ORDER BY avg_seconds DESC;
Link
lineage_tables 2 examples10 cols

Upstream database tables of each workbook and published data source (Metadata API)

Columns
content_typenot null VARCHAR
workbook or datasource.
content_idnot null VARCHAR
LUID of the workbook or published data source.
content_name VARCHAR
Name of the workbook or data source.
table_idnot null VARCHAR
Metadata API id of the table.
connection_type VARCHAR
Connection class, e.g. snowflake, postgres.
database_name VARCHAR
Database (or catalog) holding the table, as Tableau records it.
schema_name VARCHAR
Schema of the table, brackets removed.
table_name VARCHAR
Physical table name, brackets removed.
full_name VARCHAR
The table's full name as Tableau shows it, e.g. [dbo].[Orders].
qualified_name VARCHAR
Lower-cased database.schema.table without brackets, for joins with dbt / OpenLineage.
ConstraintsPRIMARY KEY (content_type, content_id, table_id)
Examples (2)

Most widely used warehouse tables

SELECT qualified_name, count(DISTINCT content_id) AS used_by
FROM tableau.main.lineage_tables
GROUP BY qualified_name
ORDER BY used_by DESC;

Impact analysis: what reads analytics.public.orders

SELECT content_type, content_name
FROM tableau.main.lineage_tables
WHERE qualified_name = 'analytics.public.orders'
ORDER BY content_name;
Link
queries 2 examples12 cols

Custom SQL queries embedded in Tableau content (Metadata API)

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
Metadata API id of the custom SQL table.
title VARCHAR
Tableau's name for the custom SQL table.
query_text VARCHAR
The custom SQL text.
connection_type VARCHAR
Connection class, e.g. snowflake.
database_name VARCHAR
Database the query runs against.
is_unsupported_custom_sql BOOLEAN
True when Tableau could not parse the SQL for lineage.
upstream_tables VARCHAR[]
Full names of the tables the query reads.
workbook_ids VARCHAR[]
LUIDs of workbooks using the query.
workbook_names VARCHAR[]
Names of workbooks using the query.
datasource_ids VARCHAR[]
LUIDs of published data sources using the query.
datasource_names VARCHAR[]
Names of published data sources using the query.
ConstraintsPRIMARY KEY (id)
Examples (2)

Custom SQL queries and how many workbooks use them

SELECT title, connection_type, len(workbook_ids) AS workbooks
FROM tableau.main.queries
ORDER BY workbooks DESC;

Custom SQL Tableau cannot trace lineage through

SELECT title, query_text
FROM tableau.main.queries
WHERE is_unsupported_custom_sql
ORDER BY title;
Link
revisions 2 examples10 cols

Revision history of workbooks and data sources

Columns
content_typenot null VARCHAR
workbook or datasource.
content_idnot null VARCHAR
LUID of the workbook or data source.
content_name VARCHAR
Name of the workbook or data source.
revision_numbernot null INTEGER
Revision number (1 = first publish).
published_at TIMESTAMP WITH TIME ZONE
When the revision was published.
publisher_id VARCHAR
LUID of the publishing user.
publisher_name VARCHAR
Username of the publisher.
size_bytes BIGINT
Size of the revision in bytes.
is_current BOOLEAN
Whether this is the current revision.
is_deleted BOOLEAN
Whether the revision was deleted.
ConstraintsPRIMARY KEY (content_type, content_id, revision_number)
Examples (2)

Most frequently republished content

SELECT content_name, max(revision_number) AS revisions
FROM tableau.main.revisions
GROUP BY content_name
ORDER BY revisions DESC;

Publishes per user

SELECT publisher_name, count(*) AS publishes
FROM tableau.main.revisions
GROUP BY publisher_name
ORDER BY publishes DESC;
Link
schedules 2 examples11 cols

Server schedules for extracts, subscriptions and flows (Tableau Server)

Columns
idnot null VARCHAR
Schedule LUID.
name VARCHAR
Schedule name.
state VARCHAR
Active or Suspended.
priority INTEGER
Priority (1 highest – 100).
schedule_type VARCHAR
Extract, Subscription, Flow or DataAcceleration.
frequency VARCHAR
Hourly, Daily, Weekly or Monthly.
execution_order VARCHAR
Parallel or Serial.
next_run_at TIMESTAMP WITH TIME ZONE
Next run time.
created_at TIMESTAMP WITH TIME ZONE
When the schedule was created.
updated_at TIMESTAMP WITH TIME ZONE
When the schedule was last changed.
frequency_details JSON
Start/end times and intervals as JSON.
ConstraintsPRIMARY KEY (id)
Examples (2)

Active schedules by next run

SELECT name, schedule_type, frequency, next_run_at
FROM tableau.main.schedules
WHERE state = 'Active'
ORDER BY next_run_at;

Schedules per type

SELECT schedule_type, count(*) AS schedules
FROM tableau.main.schedules
GROUP BY schedule_type
ORDER BY schedules DESC;
Link
sites 2 examples11 cols

The Tableau site the secret signs in to, with its settings

Columns
idnot null VARCHAR
Site LUID.
name VARCHAR
Site name.
content_url VARCHAR
Site content URL ('' = Default site).
state VARCHAR
Active or Suspended.
admin_mode VARCHAR
ContentAndUsers or ContentOnly.
user_quota BIGINT
Maximum number of users.
storage_quota BIGINT
Storage quota in MB.
revision_history_enabled BOOLEAN
Whether revision history is kept.
revision_limit INTEGER
Revisions kept per item.
catalog_enabled BOOLEAN
Whether Tableau Catalog (Metadata API) is enabled.
settings JSON
Every site attribute as JSON.
ConstraintsPRIMARY KEY (id)
Examples (2)

The signed-in site

SELECT name, content_url, state FROM tableau.main.sites;

Is revision history on, and how many revisions are kept

SELECT revision_history_enabled, revision_limit FROM tableau.main.sites;
Link
subscriptions 2 examples15 cols

Tableau email subscriptions (recipient shown masked)

Columns
idnot null VARCHAR
Subscription LUID.
subject VARCHAR
Email subject.
content_type VARCHAR
View or Workbook.
content_id VARCHAR
LUID of the subscribed view or workbook.
send_if_view_empty BOOLEAN
Whether an email is sent when the view is empty.
schedule_id VARCHAR
Schedule LUID (Tableau Server).
schedule_frequency VARCHAR
Hourly / Daily / Weekly / Monthly.
schedule_next_run_at TIMESTAMP WITH TIME ZONE
Next delivery time, when reported.
user_id VARCHAR
LUID of the recipient.
user_masked VARCHAR
Recipient's username, masked (first character + domain).
attach_image BOOLEAN
Whether an image is attached.
attach_pdf BOOLEAN
Whether a PDF is attached.
page_orientation VARCHAR
PDF page orientation.
page_size_option VARCHAR
PDF page size.
suspended BOOLEAN
Whether the subscription is suspended.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (user_id) REFERENCES users(id)
Examples (2)

Subscriptions by content type, with suspended counts

SELECT content_type, count(*) AS subscriptions,
  count(*) FILTER (WHERE suspended) AS suspended
FROM tableau.main.subscriptions
GROUP BY content_type
ORDER BY content_type;

Dashboards with the most subscribers

SELECT d.title, count(*) AS subscribers
FROM tableau.main.subscriptions s
JOIN tableau.main.dashboards d ON d.id = s.content_id
GROUP BY d.title
ORDER BY subscribers DESC;
Link
users 2 examples12 cols

Users of the Tableau site with their site role and last sign-in

Columns
tool VARCHAR
Always 'tableau' (the BI tool; lets you UNION with other BI workers).
idnot null VARCHAR
User LUID.
name VARCHAR
Username (an email address on Tableau Cloud).
full_name VARCHAR
Display name.
email VARCHAR
Email address.
site_role VARCHAR
Site role (license level), e.g. Creator, Explorer, Viewer, Unlicensed.
last_login TIMESTAMP WITH TIME ZONE
Last sign-in; NULL if the user never signed in.
auth_setting VARCHAR
Authentication type (ServerDefault, SAML, OpenID, TableauIDWithMFA …).
external_auth_user_id VARCHAR
External identity provider user id.
domain_name VARCHAR
Directory domain ('local' for local users).
locale VARCHAR
The user's display locale, e.g. en_US.
language VARCHAR
The user's interface language code, e.g. en.
ConstraintsPRIMARY KEY (id)
Examples (2)

Licenses by site role

SELECT site_role, count(*) AS users
FROM tableau.main.users
GROUP BY site_role
ORDER BY users DESC;

Creators ordered by how long since they last signed in

SELECT name, site_role, last_login
FROM tableau.main.users
WHERE site_role = 'Creator'
ORDER BY last_login NULLS FIRST;
Link
workbooks 2 examples17 cols

Tableau workbooks on the site with project, owner and size

Columns
idnot null VARCHAR
Workbook LUID.
name VARCHAR
Workbook name.
description VARCHAR
Workbook description.
folder_path VARCHAR
Slash-separated project path holding the workbook.
project_id VARCHAR
Project LUID.
project_name VARCHAR
Name of the project (folder) holding the item, without its parents.
owner VARCHAR
Owner's username.
owner_id VARCHAR
Owner's user LUID.
content_url VARCHAR
The workbook's content URL name.
url VARCHAR
Web URL of the workbook (webpageUrl).
show_tabs BOOLEAN
Whether the workbook shows sheet tabs.
size_mb BIGINT
Workbook size in megabytes as reported by Tableau.
encrypt_extracts BOOLEAN
Whether the workbook's extracts are encrypted.
default_view_id VARCHAR
LUID of the workbook's default view.
created_at TIMESTAMP WITH TIME ZONE
When the workbook was created.
updated_at TIMESTAMP WITH TIME ZONE
When the workbook was last published.
tags VARCHAR[]
Tag labels.
ConstraintsPRIMARY KEY (id) Β· FOREIGN KEY (project_id) REFERENCES folders(id) Β· FOREIGN KEY (owner_id) REFERENCES users(id)
Examples (2)

Workbooks not republished since 2026 (the date bound is pushed to Tableau)

SELECT name, folder_path, updated_at
FROM tableau.main.workbooks
WHERE updated_at < TIMESTAMPTZ '2026-01-01'
ORDER BY updated_at;

Workbook count and size per owner

SELECT owner, count(*) AS workbooks, sum(size_mb) AS total_mb
FROM tableau.main.workbooks
GROUP BY owner
ORDER BY total_mb DESC;
Link
unified 1 table

Tableau extract refreshes and Prep flow runs in the cross-tool orchestrator runs shape.

Schema examples (2)
Examples (2)

Failed extract refreshes and flow runs

SELECT pipeline, status, started_at, duration_seconds
FROM tableau.unified.runs
WHERE status = 'failed'
ORDER BY started_at DESC;

Run count and average duration per pipeline

SELECT pipeline, count(*) AS runs, avg(duration_seconds) AS avg_seconds
FROM tableau.unified.runs
GROUP BY pipeline
ORDER BY avg_seconds DESC;
Tables
runs 2 examples11 cols

Extract refresh jobs and Prep flow runs in the shared orchestrator run shape

Columns
orchestrator VARCHAR
Always 'tableau'.
run_idnot null VARCHAR
Background job LUID (extract refresh) or flow run LUID.
pipeline VARCHAR
Name of the refreshed data source / workbook, or of the flow.
status VARCHAR
queued, running, success, failed or cancelled.
raw_status VARCHAR
Tableau's status value.
trigger VARCHAR
Always NULL: Tableau does not report what triggered a run.
queued_at TIMESTAMP WITH TIME ZONE
When the job was queued (NULL for flow runs).
started_at TIMESTAMP WITH TIME ZONE
When the run started.
ended_at TIMESTAMP WITH TIME ZONE
When the run ended.
duration_seconds DOUBLE
ended_at βˆ’ started_at in seconds.
url VARCHAR
Web URL of the flow (flow runs); NULL for extract refresh jobs.
ConstraintsPRIMARY KEY (run_id)
Examples (2)

Failed extract refreshes and flow runs

SELECT pipeline, status, started_at, duration_seconds
FROM tableau.unified.runs
WHERE status = 'failed'
ORDER BY started_at DESC;

Run count and average duration per pipeline

SELECT pipeline, count(*) AS runs, avg(duration_seconds) AS avg_seconds
FROM tableau.unified.runs
GROUP BY pipeline
ORDER BY avg_seconds DESC;
Link

Credentials

The secret type tableau declares, as reported by the worker itself.

tableau

How to get these credentials

Tableau server URL and site plus a personal access token or a connected app (direct trust)

secret.sql
CREATE SECRET tableau (
    TYPE tableau,
    server_url       '<server_url>',
    site_content_url '<site_content_url>',
    pat_name         '<pat_name>',
    pat_secret       '<TABLEAU_PAT_SECRET>',  -- secret
    client_id        '<client_id>',
    secret_id        '<secret_id>',
    secret_value     '<TABLEAU_SECRET_VALUE>',  -- secret
    username         '<username>',
    scopes           '<scopes>',
    api_version      '<api_version>',
    page_size        '<page_size>'
);
Key Type Required Description
server_url VARCHAR β€” Tableau Cloud pod or Tableau Server URL, e.g. https://10ax.online.tableau.com (http:// only for 127.0.0.1/localhost).
site_content_url VARCHAR β€” Site content URL (the part after /site/ in a URL); '' for Default.
pat_name VARCHAR β€” Personal access token name.
pat_secret secret VARCHAR β€” Personal access token secret.
client_id VARCHAR β€” Connected app client id (instead of a PAT).
secret_id VARCHAR β€” Connected app secret id (the JWT kid).
secret_value secret VARCHAR β€” Connected app secret value (signs the HS256 JWT).
username VARCHAR β€” Tableau username the connected app signs in as (the JWT sub).
scopes VARCHAR β€” Space-separated connected-app scopes; defaults to read-only tableau:*:read scopes.
api_version VARCHAR β€” Pin the REST API version (e.g. 3.24); default: read from serverinfo.
page_size VARCHAR β€” Rows per REST / Metadata API page, 1–1000 (default 100).

The worker doesn't mark which keys are required.

Create the secret in the same session, after attaching tableau β€” the worker registers its secret types at ATTACH. Keys marked secret are masked in duckdb_secrets(); angle-bracket values are placeholders. Read credentials from your environment or secret store in your application and pass them through your SQL client’s parameter bindings. Keep real values out of saved SQL and history. Native DuckDB and Haybarn do not provide a SQL getenv() function.

Try these queries

dashboards_columns β€” The dashboards columns (binds only; create a tableau secret and drop LIMIT 0 for rows)

SELECT tool, id, title, folder_path, owner, view_count, url
FROM tableau.main.dashboards
LIMIT 0;

Uses dashboards

runs_columns β€” The unified.runs columns (binds only; create a tableau secret and drop LIMIT 0 for rows)

SELECT orchestrator, run_id, pipeline, status, started_at, ended_at
FROM tableau.unified.runs
LIMIT 0;

Uses runs

Worksheet count per workbook

SELECT workbook_name, count(*) AS charts
FROM tableau.main.charts
GROUP BY workbook_name
ORDER BY charts DESC

Uses charts

Custom SQL queries and how many workbooks use them

SELECT title, connection_type, len(workbook_ids) AS workbooks
FROM tableau.main.queries
ORDER BY workbooks DESC

Uses queries

Licenses by site role

SELECT site_role, count(*) AS users
FROM tableau.main.users
GROUP BY site_role
ORDER BY users DESC

Uses users

The project tree

SELECT folder_path, owner FROM tableau.main.folders ORDER BY folder_path

Uses folders

43 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Which three Tableau dashboards have the most views?
  • List the dashboards in the Finance/Quarterly folder.
  • Which Tableau worksheets have never been viewed?
  • Which published data sources are certified?
  • Which Tableau data sources connect to Snowflake, and as which database user?
  • How many Tableau users hold each site role?

Tableau is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.