Lisa - Hi, I am looking into the users/search A...

Hi, I am looking into the users/search API and wondering if there is an example with the "role_identifiers" param or whether I can retrieve role information from a user in another way.
3 Replies
shikharTS
shikharTS2d ago
I think you can give either the name of the role or the id unique ID or name of the Roles
Lisa
LisaOP14h ago
I'm asking for a sample role that I can use specifically in the API playground if that is possible.
pallav
pallav13h ago
You can use the roles/search API to retrieve a list of existing roles, or the roles/create API to create a new role. The roles/search API response also includes detailed information about the roles. Once you have the role name or ID, you can use it in the users/search API (via the "role_identifiers" parameter) to get a list of users with that role. The users/search API response provides all privileges assigned to a user. To get role information for a specific user, you can check the user's groups in the users/search response, and then use the groups/search API to retrieve all roles associated with that group. https://docs.thoughtspot.com/cloud/10.6.0.cl/rbac
Understand RBAC and privileges | ThoughtSpot Cloud
ThoughtSpot has added RBAC support to allow for a more granular distribution of privileges.

Did you find this page helpful?