<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Lakehouse Federation for SQL Server and Security Policy in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/lakehouse-federation-for-sql-server-and-security-policy/m-p/66002#M32984</link>
    <description>&lt;P&gt;We've been able to setup a Foreign Catalog using the following documentation:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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?&lt;BR /&gt;I can confirm that once disabling the Security Policy I was able to see the relevant data in the table.&lt;/P&gt;&lt;P&gt;The Security Policy is setup using SUSER_NAME().&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 13:48:21 GMT</pubDate>
    <dc:creator>marcuskw</dc:creator>
    <dc:date>2024-04-10T13:48:21Z</dc:date>
    <item>
      <title>Lakehouse Federation for SQL Server and Security Policy</title>
      <link>https://community.databricks.com/t5/data-engineering/lakehouse-federation-for-sql-server-and-security-policy/m-p/66002#M32984</link>
      <description>&lt;P&gt;We've been able to setup a Foreign Catalog using the following documentation:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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?&lt;BR /&gt;I can confirm that once disabling the Security Policy I was able to see the relevant data in the table.&lt;/P&gt;&lt;P&gt;The Security Policy is setup using SUSER_NAME().&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 13:48:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakehouse-federation-for-sql-server-and-security-policy/m-p/66002#M32984</guid>
      <dc:creator>marcuskw</dc:creator>
      <dc:date>2024-04-10T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse Federation for SQL Server and Security Policy</title>
      <link>https://community.databricks.com/t5/data-engineering/lakehouse-federation-for-sql-server-and-security-policy/m-p/66005#M32985</link>
      <description>&lt;P&gt;Was a bit quick here, found out that the SUSER_NAME() of the query is of course the connection that was setup.&lt;BR /&gt;So the User/Password defined here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skjermbilde 2024-04-10 161751.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7005iF2E1D0946601678C/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Skjermbilde 2024-04-10 161751.png" alt="Skjermbilde 2024-04-10 161751.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once I added that same user to the RLS logic I get the correct result.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 14:20:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakehouse-federation-for-sql-server-and-security-policy/m-p/66005#M32985</guid>
      <dc:creator>marcuskw</dc:creator>
      <dc:date>2024-04-10T14:20:19Z</dc:date>
    </item>
  </channel>
</rss>

