Hello,
I have a Drupal website that is integrated with Microsoft Active Directory.
Also, I have created a metabase dashboard and embedded it in the Drupal website where it doesn’t display any data unless a customer ID is passed to it.
My challenge is how can I pass the customer ID to the embedded filtered dashboard once the customer logs in with Microsoft AD credentials to display just the data for that specific customer?
Thanks Andrew for you response,
I still son’t know how to do it if you can help further.
I have a drupal website integrated with Active Directory server. once the user logs in with the AD credintials, I would like to use the login customer ID to pass it to my embedded filtered metabse dashboard. I saw that I have to use nodes.js but not quite sure.
it would be great if you can advice here
Sounds like you are already far with having the concepts - so it's only missing what @AndrewMBaines mention. The magic sauce in the this final part is that you have to have the ID parameter to be locked so that it requires to be signed with a jwt token in your Drupal embedding code. Refer to the official docs pointed to on the Wiki I mention below.
No need to use node.js you can do it with PHP code as well. If you search https://discourse.metabase.com there are plenty of examples of embedding - here's a wiki collecting various pointers (contributions on that page are welcome BTW ): WIKI: SDK (covers API, embedding etc?)