We are using Trusted Authentication and

We are using Trusted Authentication, and we register our callback when calling the TS SDK init() in our client. Using Cloud version of TS. The callback will retrieve the User Auth Token ( Get an access token for full access), and were told to pass auto_create=true which creates the user account if it does not already exist. For example: curl -X POST \ --url 'https://{ThoughtSpot-Host}/api/rest/2.0/auth/token/full' \ -H 'Authorization: Bearer {admin-access-token}'\ -H 'Accept: application/json'\ -H 'Content-Type: application/json' \ --data-raw '{ "username": "tsUserA", "secret_key": "69fb6d98-1696-42c0-9841-22b078c04060", "org_id": 2 "auto_create": true, "group_identifiers": [ "DataAdmin", "Analyst" ] }' My question is: is it right to always pass the auto_create=true...or it may cause problems? Shall I do the call without auto_create=true, and if I get an error, do the call again with auto_create=true ?
1 Reply
ashish
ashish16mo ago
Yes! we should always pass auto_create: true if thats the intention. It will also sync the groups of the user if they change in the payload.

Did you find this page helpful?