KNOWLEDGE BASE

Adding multiple Web Data Connectors and Secondary URLs in a .JSON file for Tableau Server


Published: 21 May 2020
Last Modified Date: 22 May 2020

Question

How to pass multiple Web Data Connectors and secondary whitelist URLs to Tableau Server within a .json file?

Environment

  • Tableau Server
  • Web Data Connector

Answer

For the tsm commands to pass the .json file to server and apply pending changes, please see: web-data-connector-settings Entity

To create a .json file with multiple WDC and secondary URLs, please see the following template:

{
  "configEntities": {
    "web-data-connector-settings": {
      "_type": "webDataConnectorSettingsType",
      "refreshEnabled": true,
      "whitelist": {
        "https://itigocloud.github.io/itigo-Tableau-WDC/": {
          "secondaryWhitelist": [
          "(https://itigocloud.github.io/*), (https://itigocloud.github.io/test)"
          ]
        },
         "https://stephdietzel.github.io/ConnectorOfIceAndFire/": {
            "secondaryWhitelist": [
            "(https://stephdietzel.github.io/*)"]}
      },
      "enabled": true
  }
}
}

Copy/paste the template into Notepad, and replace the listed URLs with the actual WDC URLs and secondary URLs needed for whitelisting. Please note that secondary URLs must be separated by parenthesis and comma, as shown above. Additionally, the two WDC are separated by a comma after the immediately-following curly bracket. Ensure that you save the Notepad file as .json.
 

Did this article resolve the issue?