Hello everyone,
I am currently working with Databricks AI/BI Dashboards and I have a specific requirement regarding user context.
I need to dynamically capture the "session user" (the person who is currently viewing the dashboard) rather than the "execution user" (the owner/creator of the dashboard). My goal is to use this information to apply row-level security based on who is accessing the panel.
I know about the CURRENT_USER() function, but I would like to know:
Is there a specific built-in parameter or function to strictly get the viewer's email/username even if the dashboard is running with owner credentials?
If this is not currently possible, is there any known workaround, or is this feature on the product roadmap?
Thanks in advance for the help!