Pooja - Do we have ThoughtSpot V2 API endpoint ...

Do we have ThoughtSpot V2 API endpoint similar to V1 API endpoint /tspublic/v1/user/sync used for Synchronizes user and group properties from an external database with the user data on ThoughtSpot.
7 Replies
pallav
pallav4mo ago
yes, you can use: POST /api/rest/2.0/users/import and POST /api/rest/2.0/groups/import
Pooja
PoojaOP4mo ago
The import api endpoints has limit of 20. However, there is no limit in the /tspublic/v1/user/sync If we have to update without any limit, how could it is possible
pallav
pallav4mo ago
there should not be any such limit. where are you seeing this limit mentioned, could you pls share?
pallav
pallav4mo ago
here "api rest 2.0" is showing up as "api rest 20" in name in UI. there should not be any limit for the API. pls try it out
Pooja
PoojaOP3mo ago
Does the /users/import endpoint perform a delta update by default ?
pallav
pallav3mo ago
if the users given in the payload do not already exist in the cluster, then they will be created. if already existing, they get updated. additionally, if the api payload "delete_unspecified_users" is set to true, then any users already present in cluster, which are not specified in the payload are deleted. @Pooja you can try out the api with "dry_run" set to true, to see what gets affected and how

Did you find this page helpful?