<?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 How to retrieve the data when RLS is implemented at back end in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-data-when-RLS-is-implemented-at-back-end/m-p/675482#M19201</link>
    <description>&lt;P&gt;We have a multi-tanent Azure web app (Asp.net MVC 5) connected to Azure SQL database, used by around 400 users and growing. I want to implement Power BI for data visualization. We've implemented RLS using SESSION_CONTEXT in SQL. I've gone through the article&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;and learnt that I can use either "Power BI workspace-based isolation" or "Row-level security-based isolation". It appears to me that RLS based isolation would be easier to manage and efficient (any expert's advice is always welcome). In order to retrieve the data, it is required to set a s&lt;EM&gt;ession context&lt;/EM&gt;&amp;nbsp;before running a query, as we have implemented RLS at database side. What should be the correct and efficient approach to retrieve the data in this scenario?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 08:38:21 GMT</pubDate>
    <dc:creator>divyang_vyas</dc:creator>
    <dc:date>2019-04-23T08:38:21Z</dc:date>
    <item>
      <title>How to retrieve the data when RLS is implemented at back end</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-data-when-RLS-is-implemented-at-back-end/m-p/675482#M19201</link>
      <description>&lt;P&gt;We have a multi-tanent Azure web app (Asp.net MVC 5) connected to Azure SQL database, used by around 400 users and growing. I want to implement Power BI for data visualization. We've implemented RLS using SESSION_CONTEXT in SQL. I've gone through the article&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;and learnt that I can use either "Power BI workspace-based isolation" or "Row-level security-based isolation". It appears to me that RLS based isolation would be easier to manage and efficient (any expert's advice is always welcome). In order to retrieve the data, it is required to set a s&lt;EM&gt;ession context&lt;/EM&gt;&amp;nbsp;before running a query, as we have implemented RLS at database side. What should be the correct and efficient approach to retrieve the data in this scenario?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 08:38:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-data-when-RLS-is-implemented-at-back-end/m-p/675482#M19201</guid>
      <dc:creator>divyang_vyas</dc:creator>
      <dc:date>2019-04-23T08:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the data when RLS is implemented at back end</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-data-when-RLS-is-implemented-at-back-end/m-p/685484#M19329</link>
      <description>&lt;P&gt;I finally have a solution and posting it here for reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For "&lt;SPAN&gt;Power BI workspace-based isolation" I can use parameterized report and create a template&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Help source: Jorge Segarra&amp;nbsp;&lt;A href="https://www.facebook.com/groups/powerbi/" target="_blank"&gt;https://www.facebook.com/groups/powerbi/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For "Row-level security-based isolation" I can store a list of all tenant ids&amp;nbsp;separately and then use the list as parameter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Help Source:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=iiNDq2VrZPY" target="_blank"&gt;https://www.youtube.com/watch?v=iiNDq2VrZPY&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 12:53:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-retrieve-the-data-when-RLS-is-implemented-at-back-end/m-p/685484#M19329</guid>
      <dc:creator>divyang_vyas</dc:creator>
      <dc:date>2019-05-07T12:53:48Z</dc:date>
    </item>
  </channel>
</rss>

