<?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: Rest API to query dataset with RLS in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3502863#M45156</link>
    <description>&lt;LI-CODE lang="markup"&gt;Most of our reports have RLS and this is a real issue&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Couldn't have said it better.&amp;nbsp; The real issue here is RLS.&amp;nbsp; Re-evaluate if the dataset really, really needs to have RLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you have mentioned, RLS and service principals are fundamentally incompatible. There is no workaround.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Oct 2023 21:00:26 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-10-28T21:00:26Z</dc:date>
    <item>
      <title>Rest API to query dataset with RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3501490#M45146</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to use the rest API to execute Queries In Group as:&lt;BR /&gt;&lt;SPAN&gt;POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/executeQueries" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/executeQueries&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Nevertheless, as it states in the &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries-in-group#limitations" target="_self"&gt;limitations&lt;/A&gt;, this is not possible with RLS.&lt;BR /&gt;I have ensured&amp;nbsp;&amp;nbsp;the settings 'Allow service principals to use Power BI APIs' and have permissions enough to query (no RLS reports work fine).&lt;BR /&gt;&lt;BR /&gt;Does anyone know if there is any workaround to query RLS datasets? Most of our reports have RLS and this is a real issue&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 13:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3501490#M45146</guid>
      <dc:creator>AntonioAngel</dc:creator>
      <dc:date>2023-10-27T13:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API to query dataset with RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3502863#M45156</link>
      <description>&lt;LI-CODE lang="markup"&gt;Most of our reports have RLS and this is a real issue&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Couldn't have said it better.&amp;nbsp; The real issue here is RLS.&amp;nbsp; Re-evaluate if the dataset really, really needs to have RLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you have mentioned, RLS and service principals are fundamentally incompatible. There is no workaround.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 21:00:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3502863#M45156</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-28T21:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API to query dataset with RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3511346#M45217</link>
      <description>&lt;P&gt;Thanks for your reply! I noticed that when I create a Power Automate flow, it allows me to query Datasets regardless of whether they are RLS or not.&lt;BR /&gt;Should I understand there is no way to reproduce the same with the API? (or with any other connection that can be established with R, Python, or other languages).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 07:41:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3511346#M45217</guid>
      <dc:creator>AntonioAngel</dc:creator>
      <dc:date>2023-11-02T07:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API to query dataset with RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3512975#M45231</link>
      <description>&lt;LI-CODE lang="markup"&gt;I noticed that when I create a Power Automate flow, it allows me to query Datasets regardless of whether they are RLS or not.&lt;/LI-CODE&gt;
&lt;P&gt;That is not a good thing, by the way.&amp;nbsp; The reason is that in order to run dataset queries from the Power Automate action you need to specify the workspace and you need to be a member of that workspace.&amp;nbsp; That is a very unfortunate and entirely unnecessary limitation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To work around that, write your own custom connector against the Power BI REST API.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_0-1698953738595.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/990970i4957E9077243384B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_0-1698953738595.png" alt="lbendlin_0-1698953738595.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 19:35:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rest-API-to-query-dataset-with-RLS/m-p/3512975#M45231</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-11-02T19:35:46Z</dc:date>
    </item>
  </channel>
</rss>

