Group Lineage Dataset #76
Unanswered
boonhapus
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In ThoughtSpot, you are allowed for a group to be a member of another group - nested groups - in order to achieve complex content access and permission strategies.
With the CS Tools Searchable data model, we expose Groups (
TS_GROUP
) and Memberships (TS_XREF_PRINCIPAL
).The below query will recursively navigate group hierarchies and show the lineage of that hierarchy in a final column. In order to execute this type of query easily, you can fetch your metadata with a SQLite syncer.
Command to fetch the information
cs_tools tools searchable gather --syncer sqlite://database_path=thoughtspot_metadata.db
SQL Query
When executing this against my local environment (where maintain hierarchical groups for privilege inheritance purposes), you can see a sample of the results I receive.
Beta Was this translation helpful? Give feedback.
All reactions