ferg.rose - Hi team - I have built a group admi...

Hi team - I have built a group admin tool that allows us to create groups and give them access to liveboards. The liveboards are dependent on certain metadata items of type LOGICAL_TABLE - when a group is given access to a liveboard, they also need to be given access to these metadata items. So far I can't find a convenient way to query for the metadata items that a liveboard depends on. Currently we are querying liveboards via the metadata search endpoint, and unless I am missing something, there doesn't seem to be a way to request this additional data. I have recently discovered the include_dependent_objects flag in the search metadata request body. If I query metadata objects of type LOGICAL_TABLE, the response will include dependent liveboards. I could get the relevant metadata objects by searching for the objects in the response whose dependent_objects field includes the liveboards in question, but this is a rather roundabout solution. It would be preferable to be able to just query the liveboards and have the response include metadata objects that the liveboards depend on. Just wondering if there is a way to do this - any help would be appreciated. Thanks
3 Replies
ferg.rose
ferg.roseOP2mo ago
FYI we have been advised on a solution that looks promising - the underlying data model ids for a liveboard are accessible via the export tml endpoint. We can use this route to identify ids of metadata objects to give groups access to.
Swarnika
Swarnika2mo ago
Yes, that’s correct, querying metadata objects of type LOGICAL_TABLE and using the dependent_objects field is the only way to identify which liveboards depend on them. Glad to hear the TML export endpoint worked for your use case. Let us know if you need further help.
ferg.rose
ferg.roseOP2mo ago
Much appreciated! Will do

Did you find this page helpful?