TABLEAU REST API: TABLEAU-API-LIB TUTORIALS

Tableau Server on tap: switching sites with the REST API

An essential tool for your Tableau Server automation toolbox

Elliott Stam
Analytics Vidhya
Published in
6 min readMar 30, 2020

--

Photo by Franck V. on Unsplash

Tableau Server’s REST API gives us tools to automate tasks such as adding / removing users, creating / updating / removing groups, publishing workbooks, refreshing extracts, pulling information about backend tables feeding Tableau, and more.

However, almost every REST API endpoint is specific to the site your credentials have logged into. For example, if you run a GET request to fetch user details, you will receive details for all users belonging to the site you are currently logged into.

But what if you need details for all users, across all sites on your server? Good news: it’s easier than you might think. We’ll show you how to easily switch the context of your REST API calls so you can reach every corner of your Tableau Server.

This tutorial walks through using the Python tableau-api-lib package and is part of a series on how to tap Tableau Server like a keg, giving you control over Tableau Server’s REST API.

These tutorials assume you have Python 3 installed already. If you do not have Python 3 yet, this will get you started: guide to install

--

--

Elliott Stam
Analytics Vidhya

Data scientist and author. Sometimes seen falling down mountains with a snowboard strapped to my feet.