Query Admin Insights — Site Content
Issues a VizQL Data Service (VDS)
query against the Admin Insights Site Content published datasource on the connected Tableau
Cloud site. Returns the universe of content items (workbooks, datasources, views, flows,
projects) — including items that have never been accessed.
The tool is admin-only — it is registered only when ADMIN_TOOLS_ENABLED=true, and at request
time it verifies the caller's site role and rejects anything below
SiteAdministratorCreator / SiteAdministratorExplorer / ServerAdministrator. The Admin
Insights datasource LUID is resolved automatically; callers do not pass datasourceLuid.
APIs called
- Query Datasource (VDS)
- Query Data Sources (REST) — used internally to resolve the
Site Contentdataset LUID - Get User on Site (REST) — used internally for the admin gate
Required arguments
query
A fully formed VDS query
object: fields, filters, parameters. The schema mirrors the schema accepted by the
query-datasource tool.
Common usage:
- Build a stale-content report: list all Workbooks and Datasources with
Item ID,Item Name,Item Parent Project Name,Owner Email,Created At,Updated At,Last Accessed At,Size (bytes). The deterministicget-stale-content-reporttool wraps exactly this query and applies the staleness threshold server-side. - Inventory content per project or per owner.
- Identify never-accessed items by selecting
Last Accessed Atand filtering fornull.
Example:
{
"query": {
"fields": [
{ "fieldCaption": "Item ID" },
{ "fieldCaption": "Item Type" },
{ "fieldCaption": "Item Name" },
{ "fieldCaption": "Item Parent Project Name" },
{ "fieldCaption": "Owner Email" },
{ "fieldCaption": "Created At" },
{ "fieldCaption": "Updated At" },
{ "fieldCaption": "Last Accessed At" },
{ "fieldCaption": "Size (bytes)" }
],
"filters": [
{
"field": { "fieldCaption": "Item Type" },
"filterType": "SET",
"values": ["Workbook", "Datasource"],
"exclude": false
}
]
}
}
Optional arguments
limit
The maximum number of rows to return. The tool will pass this through as rowLimit on the VDS
request and additionally truncate the response if VDS returns more rows than requested.
Example: 1000
See also: MAX_RESULT_LIMIT
Notes and caveats
Site Contentexposes a nativeLast Accessed Atfield per item — the value isnullfor items that have never been accessed. This is a key advantage over a TS Events anti-join, which is bounded by the 90-day event lookback window.- Field captions on
Site Contentdiffer from those onTS Eventson the same site (e.g.Item IDhere vsItem Idon TS Events;Item Parent Project Namehere vsProject Nameon TS Events). Inspect the dataset schema withget-datasource-metadatawhen in doubt. - The
Item IDfield is returned as an integer by VDS, not a string. - This tool intentionally bypasses the standard datasource access checker because the Admin Insights datasources are internal/known and admin-gated independently.
Example result
{
"data": [
{
"Item ID": 1412202,
"Item Type": "Workbook",
"Item Name": "World Indicators",
"Item Parent Project Name": "Samples",
"Owner Email": "owner@example.com",
"Created At": "2025-09-02T23:26:02",
"Updated At": "2025-09-02T23:26:02",
"Last Accessed At": null,
"Size (bytes)": 796179
}
]
}