Tarphon
Tarphon
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
Side question: what's the difference between INACTIVE and SUSPENDED (both are shown in the UI as suspended)?
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
After reset password I can update the account status. Thanks.
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
We need to create a thoughtspot user without requiring any actions from our customers, but IIUC the only way to activate is using an activation email.
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
const adminToken = await adminClient.getFullAccessToken({
auto_create: false,
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username: thoughtSpotAdminUsername()
});

await adminClient.activateUser({
user_identifier: 'user_id',
auth_token: adminToken.token,
password: 'password'
});
const adminToken = await adminClient.getFullAccessToken({
auto_create: false,
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username: thoughtSpotAdminUsername()
});

await adminClient.activateUser({
user_identifier: 'user_id',
auth_token: adminToken.token,
password: 'password'
});
like this? Getting Unable to fetch user authentication information from authToken
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
const client = new ThoughtSpotRestApi(
createBearerAuthenticationConfig(thoughtSpotBaseUrl(), {
auto_create: true,
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username,
display_name: username,
email: '...'
})
);

const token = await client.getFullAccessToken({
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username
});

await client.activateUser({
user_identifier: username,
auth_token: token.token,
password: 'password'
});
const client = new ThoughtSpotRestApi(
createBearerAuthenticationConfig(thoughtSpotBaseUrl(), {
auto_create: true,
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username,
display_name: username,
email: '...'
})
);

const token = await client.getFullAccessToken({
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username
});

await client.activateUser({
user_identifier: username,
auth_token: token.token,
password: 'password'
});
getting Either your username or password is incorrect. Your account may lock out after multiple successive incorrect attempts
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
const adminClient = initThoughtSpotAdminClient();

const token = await adminClient.getFullAccessToken({
auto_create: true,
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username: `chaim-test`,
display_name: 'chaim',
});

await adminClient.activateUser({
user_identifier: token.valid_for_user_id,
auth_token: token.token,
password: 'password'
});
const adminClient = initThoughtSpotAdminClient();

const token = await adminClient.getFullAccessToken({
auto_create: true,
secret_key: thoughtSpotSecretKey(),
org_id: thoughtSpotOrganizationId(),
username: `chaim-test`,
display_name: 'chaim',
});

await adminClient.activateUser({
user_identifier: token.valid_for_user_id,
auth_token: token.token,
password: 'password'
});
getting Unable to authenticate current user with given token
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
I'll try.
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
How to activate it? The activate user API needs auth_token that as admin I don't have.
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
How?
28 replies
TFDThoughtSpot For Developers
Created by Tarphon on 2/9/2025 in #dev-help
Chaim Platonov - Hey,I'm writing code to sync ...
I'm using user with ADMINISTRATION privilege to update another user to INACTIVE and getting the error I mentioned. I'm checking the status with the token of the user I'm trying to update.
28 replies