cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Row-Level Security Not Working in Published Databricks AI/BI Dashboard

Akshay_Petkar
Contributor III

I have applied row-level security (RLS) on the department column in the table so that users can only see data related to their own department. The security policy works perfectly when I query the table in Databricks SQL.

Now, I have built a Databricks AI BI dashboard using this table and published it. However, when I provide access to users from a specific department, they are able to see all department data instead of just their own.

Interestingly, when I check the dashboard in draft mode, the RLS is applied correctly, and users only see their department’s data. But when the dashboard is published,it seems that the row-level security is not being enforced because users are able to see all departments in the dashboard. Has anyone faced a similar issue?  Any insights or suggestions would be highly appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions

Forgot to attach a screenshot. You can select whether to embed a credential when you publish a dashboard like this.

koji_kawamura_0-1741151747180.png

 

View solution in original post

2 REPLIES 2

koji_kawamura
Databricks Employee
Databricks Employee

Hi @Akshay_Petkar , which credential mode did you use to publish the dashboard?

In order to make access control work based on the viewer's credential, "Don't embed credentials" mode should be used. If you published the dashboard with "Embed credentials", then all viewers will access underlying tables behind the dashboard using the embedded credential, which may have access privileges more than you expected.

Please check this documentation page for details. https://docs.databricks.com/aws/en/dashboards/#publish-a-dashboard

Forgot to attach a screenshot. You can select whether to embed a credential when you publish a dashboard like this.

koji_kawamura_0-1741151747180.png

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now