Skip to contents

Authenticates the user on the Tableau server and retrieves the necessary authentication variables for running other Tableau REST API methods.

Usage

authenticate_server(
  username = tableau_username(),
  password = tableau_password(),
  base_url = tableau_base_url(),
  api_version = 3.4
)

Arguments

username

The username on the Tableau server. Defaults to the `TABLEAU_USERNAME` environment variable.

password

The password on the Tableau server. Defaults to the `TABLEAU_PASSWORD` environment variable.

base_url

The base URL of the Tableau server. Defaults to the `TABLEAU_BASE_URL` environment variable.

api_version

The API version to use (default: 3.4).

Value

A list containing the authentication variables: base_url, token, site_id, and user_id.