Skip to content

ThoughtSpot Setup

The Zuar Portal ThoughtSpot integration requires a couple of setup steps in ThoughtSpot as well as in the Portal.

Overview

  1. Enable "Trusted authentication" in ThoughtSpot security settings. Learn more.
  2. Add Portal domain in the Security settings of your ThoughtSpot instance. Learn more.
  3. Add Trusted authentication token and ThoughtSpot domain to Portal's Integrations. Learn more.

Enable Trusted authentication

Portal uses Trusted authentication to get access to ThoughtSpot Embed and REST API features. To use "Trusted authentication" it must be enabled in the Security settings of your ThoughtSpot instance. In order to do that follow next steps:

  1. Log in to your ThoughtSpot instance with a user that has an Admin role.
  2. Navigate to Develop > Customizations > Security Settings.
  3. Click "Edit" button.
  4. Enable "Trusted authentication" toggle.
  5. Click "Save" settings.
  6. Click "Edit" button again.
  7. Under "Trusted authentication" toggle you should now be able to see a field with the generated token.
  8. Save you this token and send it to your Zuar Representative along with your ThoughtSpot instance URL (eg; my-company.thoughtspot.cloud).

For more information check the official documentation on "Trusted authentication".

Add Portal domain to CSP and CORS settings in ThoughtSpot

Follow these steps to allow your Portal to connect to your ThoughtSpot instance:

  1. Log in to your ThoughtSpot instance with a user that has an Admin role.
  2. Navigate to Develop > Customizations > Security Settings.
  3. Click "Edit" button.
  4. In "CSP visual embed hosts" field, add your Portal's domain, including https://.
  5. In "CORS whitelisted domains" add your Portal's domain, without https://.
    1. For example if Portal's URL is https://portal.zuarbase.net/, you should add portal.zuarbase.net in ThoughtSpot settings.
  6. Click "Save" settings.

For more information check the official documentation on "CORS whitelisted domains".

Portal Thoughtspot Integration

To connect you Thoughtspot instance to the Portal you can use Admin's Integrations section. Admin's Integrations section

  1. Enable Thoguthspot integration Thoughtspot Integration
  2. Enter your Thoughtspot instance domain in ThoughtSpot Hostname field Thoughtspot Integration
  3. Click on ThoughtSpot credentials field to open dropdown and click + Create New Credentials Thoughtspot Integration
  4. In modal enter your Trusted authentication token in Secret key field and click Save Thoughtspot Integration
  5. Click Save Thoughtspot Integration
  6. This is it! Your Thoughtspot integration is complete.

ThoughtSpot User Provision

ThoughtSpot User Provision allows to automatically create a user on login if it doesn't exist. To enable check corresponding toggle. Thoughtspot Integration

Multi-Org Support

Portal supports ThoughtSpot multi-org deployments where users have access to multiple ThoughtSpot organizations. When multi-org is enabled, users can switch between organizations and all ThoughtSpot blocks on the page update to display data from the selected org.

ThoughtSpot Block Types

The following block types are available for ThoughtSpot integrations:

Using Multi-Org

  1. Add a ThoughtSpot Org Picker block to the page so users can switch organizations.
  2. When configuring ThoughtSpot Liveboard or Spotter blocks, select the Organization in the block editor.
  3. Enable Hide block if user is not authenticated for the selected Organization to automatically hide blocks the user cannot access.

The System JS API provides programmatic access to multi-org functionality via zPortal.thoughtspot.setOrg() and event handlers.