Follow the below steps to generate/retrieve a PAT.

  1. Login into the Tableau instance https://{instance_name}/#/site/{site_url}.

  2. Open My Account Settings
  3. Select Create Personal Access Token.
  4. Note name and token of PAT.
  5. From settings → General → Personal Access Token → Enable and set the expiration date and set creation access of PAT.