cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Lakehouse Federation for SQL Server and Security Policy

marcuskw
Contributor II

We've been able to setup a Foreign Catalog using the following documentation:
https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server

However the tables that have RLS using a Security Policy appear empty. I imagine that this solution is not able to use the Functions and respective Security Policy?
I can confirm that once disabling the Security Policy I was able to see the relevant data in the table.

The Security Policy is setup using SUSER_NAME().

1 ACCEPTED SOLUTION

Accepted Solutions

marcuskw
Contributor II

Was a bit quick here, found out that the SUSER_NAME() of the query is of course the connection that was setup.
So the User/Password defined here:

Skjermbilde 2024-04-10 161751.png

Once I added that same user to the RLS logic I get the correct result.

โ€ƒ

View solution in original post

1 REPLY 1

marcuskw
Contributor II

Was a bit quick here, found out that the SUSER_NAME() of the query is of course the connection that was setup.
So the User/Password defined here:

Skjermbilde 2024-04-10 161751.png

Once I added that same user to the RLS logic I get the correct result.

โ€ƒ

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group