API endpoint | Available from |
---|---|
| ThoughtSpot Cloud ts7.aug.cl |
| ThoughtSpot Cloud ts7.aug.cl |
| ThoughtSpot Cloud ts7.aug.cl |
| ThoughtSpot Cloud ts7.aug.cl |
| ThoughtSpot Cloud ts7.aug.cl |
| ThoughtSpot Cloud ts7.oct.cl |
| ThoughtSpot Cloud ts7.oct.cl |
| ThoughtSpot Cloud ts7.oct.cl |
| ThoughtSpot Cloud ts7.oct.cl |
| ThoughtSpot Cloud 9.7.0.cl |
| ThoughtSpot Cloud ts7.may.cl |
| ThoughtSpot Cloud 9.7.0.cl |
| ThoughtSpot Cloud ts7.may.cl |
| ThoughtSpot Cloud ts7.sep.cl |
| ThoughtSpot Cloud ts7.sep.cl |
| ThoughtSpot Cloud ts7.sep.cl |
| ThoughtSpot Cloud ts7.sep.cl |
| ThoughtSpot Cloud ts7.sep.cl |
| ThoughtSpot Cloud ts7.sep.cl |
| ThoughtSpot Cloud ts7.aug.cl |
| ThoughtSpot Cloud ts7.aug.cl |
Group APIs
- User groups and privileges
- Supported operations
- Create a user group
- Update a user group
- Get details of a user group
- Add a privilege to a user group
- Remove a privilege assigned to a group
- Add a user to a group
- Get a list of users assigned to a group
- Add users to a specific group
- Update user data for a group
- Get a list of users in a group
- Remove users from a specific group
- Add members to a group
- Assign groups to another group
- Update the subgroup objects of a group
- Get a list of subgroups from a group object
- Remove subgroups from a group
- Remove members from a group
- Delete a user from a user group
- Delete a user group
- APIs for Role assignment
The Group API endpoints allow you to programmatically create and manage user groups, configure privileges, and assign users to a group.
User groups and privilegesπ
ThoughtSpot administrators can programmatically assign the following types of privileges to a user group:
-
ADMINISTRATION
Allows users to perform the following functions:
-
Create, edit, and delete users and user groups
-
View and edit access to all data
-
Download a saved answer
-
-
DEVELOPER
Allows users to perform the following functions:
-
Access Developer portal
-
Embed ThoughtSpot app or its content in an external application
-
Add custom menu options in the embedded Liveboards and visualizations
-
Re-brand the interface elements of the embedded ThoughtSpot content
-
-
USERDATAUPLOADING
Allows users to upload data to ThoughtSpot.
-
DATADOWNLOADING
Allows users to download ThoughtSpot data from search results and Liveboards.
-
DATAMANAGEMENT
Allows users to create worksheets and views. To edit a worksheet or view created and shared by another user, the user must have edit permission to modify the object.
-
SHAREWITHALL
Allows users to share objects with other users and user groups.
-
EXPERIMENTALFEATUREPRIVILEGE
Allows access to the trial and experimental features that ThoughtSpot makes available to evaluating users and early adopters.
-
JOBSCHEDULING
Allows scheduling and editing Liveboard jobs.
-
RANALYSIS
Allows invoking R scripts to explore search answers and sharing custom scripts.
-
A3ANALYSIS
Allows users to generate and access SpotIQ analyses.
-
BYPASSRLS
Allows access to the following operations:
-
Create, edit, or delete existing RLS rules
-
Enable or disable Bypass RLS on a worksheet
-
-
SYNCMANAGEMENT
Allows setting up secure pipelines to external business apps and sync data using ThoughtSpot Sync.
Supported operationsπ
Required permissionsπ
You must have administrator access to create, edit, or delete group objects, configure privileges, and assign users.
If you have a multi-tenant instance, the cluster admin can associate a group to an orgid
. For more information about Orgs, see Multi-tenancy with Orgs.
Create a user groupπ
To programmatically create a user group, send a POST
request to the /tspublic/v1/group/
API endpoint.
Note
|
ThoughtSpot also has a default group called |
Resource URLπ
POST /tspublic/v1/group/
Request parametersπ
Form parameter | Description |
---|---|
| String. Name of the user group. The group name string must be unique. |
| String. A unique display name string for the user group, for example, |
| String. Description text for the group. |
| Array of strings. A JSON array of the privileges to assign to the group. Valid values for the
|
| String. Type of user group. Default value is |
| String. GUID of the tenant for which the user group is being created. |
| String. Visibility of the user group. The |
| Array of Strings. Array of Role GUIDs. If RBAC is enabled and Roles are created on your instance, specify the GUIDs of the Role objects. |
Example requestπ
curl -X POST \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'X-Requested-By: ThoughtSpot' \
-d 'name=TS%20Group&display_name=TS%20Group&grouptype=LOCAL_GROUP&visibility=DEFAULT'\
'https://{ThoughtSpot-Host}/callosum/v1/tspublic/v1/group/'
https://{ThoughtSpot-Host}/callosum/v1/tspublic/v1/group/
Example responseπ
If the user group is successfully created in ThoughtSpot, the API returns the user group GUID along with the following JSON response:
{
"userGroupContent": {
"schemaVersion": "4"
},
"groupIdx": 2,
"metadataVersion": -1,
"assignedPinboards": [],
"assignedGroups": [],
"inheritedGroups": [],
"privileges": [],
"type": "LOCAL_GROUP",
"parenttype": "GROUP",
"visibility": "DEFAULT",
"tenantId": "982d6da9-9cd1-479e-b9a6-35aa05f9282a",
"displayName": "TS Group",
"header": {
"id": "0f7af46f-e48c-4cca-b60f-d63d5ddbe59f",
"indexVersion": 0,
"generationNum": 0,
"name": "TS Group",
"author": "59481331-ee53-42be-a548-bd87be6ddd4a",
"created": 1624882497992,
"modified": 1624882497992,
"modifiedBy": "59481331-ee53-42be-a548-bd87be6ddd4a",
"owner": "0f7af46f-e48c-4cca-b60f-d63d5ddbe59f",
"tags": [],
"isExternal": false,
"isDeprecated": false
},
"complete": true,
"incompleteDetail": [],
"isSystemPrincipal": false
}
Response codesπ
HTTP status code | Description |
---|---|
200 | Successful operation |
401 | Unauthorized request |
500 | Incorrect password format |
Update a user groupπ
If you have admin user privileges, you can programmatically modify the properties of a group using the /tspublic/v1/group/{groupid}
API. Using this API, you can also assign privileges and modify the group visibility.
Resource URLπ
PUT /tspublic/v1/group/{groupid}
Request parametersπ
Form parameter | Description |
---|---|
| String. The GUID of the user group. |
| String. A JSON map of group properties. |
| Array of Strings. Array of Role GUIDs. If RBAC is enabled and Roles are created on your instance, specify the GUIDs of the Role objects. |
Example requestπ
curl -X PUT \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'X-Requested-By: ThoughtSpot' \
-d 'groupid=0f7af46f-e48c-4cca-b60f-d63d5ddbe59f&content={ "userGroupContent": { "schemaVersion": "4" }, "groupIdx": 2, "metadataVersion": -1, "assignedPinboards": [], "assignedGroups": [], "inheritedGroups": [], "privileges": [], "type": "LOCAL_GROUP", "parenttype": "GROUP", "visibility": "DEFAULT", "tenantId": "982d6da9-9cd1-479e-b9a6-35aa05f9282a", "displayName": "TS Group", "header": { "id": "0f7af46f-e48c-4cca-b60f-d63d5ddbe59f", "indexVersion": 0, "generationNum": 0, "name": "TS Group", "author": "59481331-ee53-42be-a548-bd87be6ddd4a", "created": 1624882497992, "modified": 1624882497992, "modifiedBy": "59481331-ee53-42be-a548-bd87be6ddd4a", "owner": "0f7af46f-e48c-4cca-b60f-d63d5ddbe59f", "tags": [], "isExternal": false, "isDeprecated": false }, "complete": true, "incompleteDetail": [], "isSystemPrincipal": false }' \
'https://{ThoughtSpot-Host}/callosum/v1/tspublic/v1/group/{groupid}'
https://{ThoughtSpot-Host}/callosum/v1/tspublic/v1/group/{groupid}
Example JSON for user group updateπ
{
"userGroupContent": {
"schemaVersion": "4"
},
"groupIdx": 2,
"metadataVersion": -1,
"assignedPinboards": [],
"assignedGroups": [],
"inheritedGroups": [],
"privileges": [],
"type": "LOCAL_GROUP",
"parenttype": "GROUP",
"visibility": "DEFAULT",
"tenantId": "982d6da9-9cd1-479e-b9a6-35aa05f9282a",
"displayName": "TS Group",
"header": {
"id": "0f7af46f-e48c-4cca-b60f-d63d5ddbe59f",
"indexVersion": 0,
"generationNum": 0,
"name": "TS Group",
"author": "59481331-ee53-42be-a548-bd87be6ddd4a",
"created": 1624882497992,
"modified": 1624882497992,
"modifiedBy": "59481331-ee53-42be-a548-bd87be6ddd4a",
"owner": "0f7af46f-e48c-4cca-b60f-d63d5ddbe59f",
"tags": [],
"isExternal": false,
"isDeprecated": false
},
"complete": true,
"incompleteDetail": [],
"isSystemPrincipal": false
}
Example responseπ
On successful update of the user group properties, the API returns the following response code:
Response Code 204
Response codesπ
HTTP status code | Description |
---|---|
204 | Successful operation |
403 | Unauthorized request |
500 | Invalid content format |