<?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 Re: RLS in Genie Space in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137725#M1337</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179874"&gt;@GunaR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one is a tricky one as the users are not onboarded to databricks workspace. There is a custom solution you will require to build.&lt;/P&gt;&lt;P&gt;- Use Service Principal for the external application to authenitcate with Genie API. This SP will. have broader access to the table(s) data.&lt;/P&gt;&lt;P&gt;- Use a RLS Policy that uses a parametere which is dynamically passed by Genie.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Unity Catalog SQL function that accepts the external User ID as a parameter, looks up their required filter value, and then applies the RLS logic.&lt;/LI&gt;&lt;LI&gt;Apply the RLS Filter to Your Data Table (ALTER TABLE ... ADD ROW FILTER)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;- Genie API: Passing the User ID and Enforcing the Filter&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Modify the Genie Space Instructions to pick up the USER_ID from provided query&lt;/LI&gt;&lt;LI&gt;Pass the User ID in the API Call -When you call the Genie Conversation API (e.g., /api/2.0/genie/spaces/{space_id}/start-conversation), inject the user ID into the prompt or the request body's context. such as "I am the user with ID &amp;lt;USER_ID&amp;gt;. What is total revenue?"&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;As mentioned, its a custom solution as there is no direct way to pass the external USER_ID to genie directly.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 05 Nov 2025 09:54:11 GMT</pubDate>
    <dc:creator>Raman_Unifeye</dc:creator>
    <dc:date>2025-11-05T09:54:11Z</dc:date>
    <item>
      <title>RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/135198#M1246</link>
      <description>&lt;P&gt;I am developing a Conversational BI Solution using Genie. There are users from different roles and we need to restrict the rows returned based on the user's role. Typically RLS. I understand from documentation Genie leverage the RLS setup on the Unity catalog. This approach expects to onboard the users to Databricks workspace, which is not feasible in my case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The approach is to use the Genie API to customize the chat experience for the users.&lt;/P&gt;&lt;P&gt;My request is, how can we pass the user ID on every conversation and use this to filter the rows using RLS? Or is there any documentation on the best practices?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 06:10:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/135198#M1246</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-10-17T06:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/135565#M1258</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179874"&gt;@GunaR&lt;/a&gt;&amp;nbsp;- Are you saying these users are not set up in Databricks at all, or are you saying these users are set up in an IDP (such as Azure Entra ID) and then synced with Databricks?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 18:36:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/135565#M1258</guid>
      <dc:creator>dkushari</dc:creator>
      <dc:date>2025-10-21T18:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/135608#M1259</link>
      <description>&lt;P&gt;Yes, these users are not in Databricks at all. The approach is to expose the custom build chatbot to 500+ users and pass the email ID to custom API, which invoke the Genie API internally.&amp;nbsp; I need to build the mechanism to handle RLS with this approach. Is it feasible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 03:40:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/135608#M1259</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-10-22T03:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137265#M1320</link>
      <description>&lt;P&gt;Hi Guna , Same Kind of use I have . Did u able to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Nov 2025 20:32:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137265#M1320</guid>
      <dc:creator>Jeeva</dc:creator>
      <dc:date>2025-11-01T20:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137487#M1329</link>
      <description>&lt;P&gt;Not yet, still on-research to achieve without onboarding to Databricks. Will keep posted here if I found any,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 04:42:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137487#M1329</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-11-04T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137709#M1333</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179874"&gt;@GunaR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Building a &lt;STRONG&gt;Databricks App&lt;/STRONG&gt; integrated with &lt;STRONG&gt;AI/BI Genie&lt;/STRONG&gt; could be a clean way to handle this. Apps allow you to expose Genie (or any model endpoint) to external users &lt;STRONG&gt;without onboarding them into the workspace&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You can authenticate users through your existing IDP (e.g., Entra ID, Okta) and pass their identity or email to the Genie API. That context can then be used to enforce &lt;STRONG&gt;row-level and column-level security&lt;/STRONG&gt; via &lt;STRONG&gt;Unity Catalog&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This pattern &lt;EM&gt;Databricks App + Genie + Unity Catalog&lt;/EM&gt;&amp;nbsp;is the recommended way to serve governed, chat-style analytics to larger user groups securely.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 08:54:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137709#M1333</guid>
      <dc:creator>bianca_unifeye</dc:creator>
      <dc:date>2025-11-05T08:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137718#M1335</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/193092"&gt;@bianca_unifeye&lt;/a&gt;&amp;nbsp; Thank you for your response. I am on the same approach. But the Genie API doesn't have option to send the email as request param.&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/genie/startconversation" target="_blank"&gt;https://docs.databricks.com/api/workspace/genie/startconversation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 09:05:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137718#M1335</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-11-05T09:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137719#M1336</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179874"&gt;@GunaR&lt;/a&gt;&amp;nbsp; let me check with my team as I believe we had a workaround this.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2025 09:08:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137719#M1336</guid>
      <dc:creator>bianca_unifeye</dc:creator>
      <dc:date>2025-11-05T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137725#M1337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/179874"&gt;@GunaR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one is a tricky one as the users are not onboarded to databricks workspace. There is a custom solution you will require to build.&lt;/P&gt;&lt;P&gt;- Use Service Principal for the external application to authenitcate with Genie API. This SP will. have broader access to the table(s) data.&lt;/P&gt;&lt;P&gt;- Use a RLS Policy that uses a parametere which is dynamically passed by Genie.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a Unity Catalog SQL function that accepts the external User ID as a parameter, looks up their required filter value, and then applies the RLS logic.&lt;/LI&gt;&lt;LI&gt;Apply the RLS Filter to Your Data Table (ALTER TABLE ... ADD ROW FILTER)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;- Genie API: Passing the User ID and Enforcing the Filter&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Modify the Genie Space Instructions to pick up the USER_ID from provided query&lt;/LI&gt;&lt;LI&gt;Pass the User ID in the API Call -When you call the Genie Conversation API (e.g., /api/2.0/genie/spaces/{space_id}/start-conversation), inject the user ID into the prompt or the request body's context. such as "I am the user with ID &amp;lt;USER_ID&amp;gt;. What is total revenue?"&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;As mentioned, its a custom solution as there is no direct way to pass the external USER_ID to genie directly.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Nov 2025 09:54:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/137725#M1337</guid>
      <dc:creator>Raman_Unifeye</dc:creator>
      <dc:date>2025-11-05T09:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/138566#M1379</link>
      <description>&lt;P&gt;Noted. Thank you for the suggestion and this make more logical.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 10:48:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/138566#M1379</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-11-11T10:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/138857#M1391</link>
      <description>&lt;P&gt;You can implement RLS in Genie without adding users to Databricks by passing a user identifier with each API call and having your queries filter rows based on that ID. Typically, you’d set up parameterized queries or session variables that enforce row restrictions per user role. Check if Genie’s API supports context or metadata fields for each conversation—these can carry the user ID and drive the RLS logic.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 05:52:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/138857#M1391</guid>
      <dc:creator>CharlotteMarti2</dc:creator>
      <dc:date>2025-11-13T05:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/138869#M1392</link>
      <description>&lt;P&gt;Thank you for the response&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/194572"&gt;@CharlotteMarti2&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I am on the same lines, Unfortunately I don't see an option in the Genie API to set the context/metadata fields.&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/genie/startconversation" target="_blank"&gt;https://docs.databricks.com/api/workspace/genie/startconversation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 08:20:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/138869#M1392</guid>
      <dc:creator>GunaR</dc:creator>
      <dc:date>2025-11-13T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: RLS in Genie Space</title>
      <link>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/154448#M1748</link>
      <description>&lt;P&gt;Hi Guna, I have been trying to implement the same in my environment. Do you have any luck?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 13:01:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/rls-in-genie-space/m-p/154448#M1748</guid>
      <dc:creator>Prathusha_</dc:creator>
      <dc:date>2026-04-14T13:01:12Z</dc:date>
    </item>
  </channel>
</rss>

