Org administration
To administer and manage Orgs, you can use the UI workflows or REST API endpoints.
This article describes the REST API operations available for Org provisioning and management.
Get started with Orgs🔗
-
Configure your ThoughtSpot instance as a multi-tenant cluster. If the Orgs feature is enabled on your cluster, a Primary Org is created by default, and you will be logged in to the Primary Org context.
If you do not see the Orgs feature enabled on your instance, contact ThoughtSpot Support.
-
Log in to your application instance as an administrator.
-
Create Orgs in the Admin page of the UI or via REST API.
To create and manage Orgs, you must set the Org context to
All. To do this, you can switch to the All Orgs tab in the Admin page of UI or pass the Org scopeALLin your API requests to Orgs API endpoints. For more information, see Org API. -
Create users and map the users to Orgs.
You can create an administrator profile for each Org and let these Org administrators manage users, groups, and role privileges in their respective Orgs.
Note that ThoughtSpot allows provisioning groups only within the context of an Org. You must ensure that ThoughtSpot users are mapped to appropriate Orgs and the groups within these Orgs for user access control and data security.
Org management operations🔗
To create an Org on a multi-tenant ThoughtSpot instance, you need cluster administrator privileges. By default, ThoughtSpot sets the administrator of the Primary Org as a cluster administrator. Only cluster administrators are allowed to perform CRUD operations on Org objects.
REST API v2.0 endpoints🔗
For Orgs CRUD operations, you can also use the following REST API v2.0 Org endpoints:
REST API v1 endpoints🔗
For Orgs CRUD operations, use the /tspublic/v1/org/ endpoints. To access Org API endpoints, you must log in to ThoughtSpot as a cluster administrator:
Note that for all Org operations, you must set the org scope to ALL in your API request and pass it as a query parameter in the request URL.
-
To create an Org, send a
POSTrequest to the/tspublic/v1/org/endpoint with the Org name and description text in the request body.If the API operation is successful, ThoughtSpot creates an Org and assigns a system-generated number as Org ID.
-
To view the Orgs configured on a ThoughtSpot instance, use the
/tspublic/v1/org/searchorGET /tspublic/v1/org/API endpoint. -
To edit the properties of an Org object, use the
PUT /tspublic/v1/org/endpoint.The
PUTrequest allows modifying the name and description properties of an Org object. -
To delete an Org object, send a
DELETErequest to the/tspublic/v1/org/endpoint with Org ID or name in the request body.