KNOWLEDGE BASE

TabProvision Error "The remote server returned an error: (401) Unauthorized" to Automate User/Role/Groups


Published: 01 Dec 2023
Last Modified Date: 01 Dec 2023

Issue

The following error appears when running the TabProvision tool to automate user/role/groups:

Error: "000, 11/29/2023 10:51:24 AM, Error returned from sign in response: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at TableauServerSignIn.Execute()
001, 11/29/2023 10:51:24 AM, Error provisioning Tableau Online site. Error: The remote server returned an error: (401) Unauthorized."

Environment

  • Tableau Cloud

Resolution

  1. Log in to Tableau Cloud, navigate to My Account Settings, under Personal Access Tokens, revoke the current token and  regenerate the Personal Access Token.
  2. Use the newly created Personal Access Token in automation scripts to authenticate to Tableau Cloud.

Cause

An invalid Personal Access Token is sent to a Tableau Cloud site.

Additional Information

TabProvision is a flexible tool for automating user/role/groups provisioning in Tableau Cloud.  For more information on TabProvision, please see the github page.

TabProvision tool is Community supported.
Did this article resolve the issue?