<?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: Access Denied for Power BI REST API Querying Dataset with Dataflows as Data Source in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4296994#M58396</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;Thanks for you reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact scp is not in the token (i am comparing with the access token generated by microsoft learn for testing the api with my personal account). Not really sure how to fix it since i am already setting the scope&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;A href="https://analysis.windows.net/powerbi/api/.default" target="_blank"&gt;https://analysis.windows.net/powerbi/api/.default&lt;/A&gt;&amp;nbsp;when requesting the access token therefore, i can't find what i would need to change to fix it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But assuming this would be the issue, it's hard to me the wrap my head around the fact that this same token can query other datasets from the same workspace and is even used to embed a report that uses this same dataset. Correct me if i am wrong, but user access is set at the workspace level right? So if this SA can access one should be able to have access to all.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the help&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Nov 2024 10:08:28 GMT</pubDate>
    <dc:creator>Mosaic_pedro</dc:creator>
    <dc:date>2024-11-22T10:08:28Z</dc:date>
    <item>
      <title>Access Denied for Power BI REST API Querying Dataset with Dataflows as Data Source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4295138#M58371</link>
      <description>&lt;DIV class=""&gt;&lt;P&gt;I'm trying to query a specific Power BI dataset using the REST API and a Python script with a service account for authentication. However, I'm encountering an "Access Denied" error for this particular dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dataset details:&lt;/STRONG&gt; The dataset uses dataflows as its data sources apart from this, there is nothing special with it. The workspace is a fabric workspace (this one is currently on trial)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Service Account:&lt;/STRONG&gt; The service account I'm using has the necessary permissions and works correctly for other datasets within the same tenant and workspaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Azure App Permissions:&lt;/STRONG&gt; I have already confirmed that the Azure app used by the service account has been granted Dataset.ReadWrite.All access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Debugging steps so far:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Queried other datasets within the same tenant using the same script and service account. No issues were encountered.&lt;/LI&gt;&lt;LI&gt;Verified that the service account has access to the dataset and related resources (dataflows).&lt;/LI&gt;&lt;LI&gt;Given these points, I suspect the issue might be related to how access tokens or permissions are configured for datasets that use dataflows as sources. Oddly when using dax studio or even Microsoft learn api explore with my user i get not issue.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;My Questions&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Are there any special permissions or configurations required for service accounts to access datasets with dataflows as sources?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could this issue be related to the way access tokens are being validated for datasets with dataflows?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What steps would you recommend to debug or resolve this access issue?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or suggestions would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thank you for your time and help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Nov 2024 10:53:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4295138#M58371</guid>
      <dc:creator>Mosaic_pedro</dc:creator>
      <dc:date>2024-11-21T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Access Denied for Power BI REST API Querying Dataset with Dataflows as Data Source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4295948#M58383</link>
      <description>&lt;P&gt;Examine the token at jwt.io - most likely the scp is missing/wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 20:40:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4295948#M58383</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-21T20:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access Denied for Power BI REST API Querying Dataset with Dataflows as Data Source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4296994#M58396</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;Thanks for you reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact scp is not in the token (i am comparing with the access token generated by microsoft learn for testing the api with my personal account). Not really sure how to fix it since i am already setting the scope&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;A href="https://analysis.windows.net/powerbi/api/.default" target="_blank"&gt;https://analysis.windows.net/powerbi/api/.default&lt;/A&gt;&amp;nbsp;when requesting the access token therefore, i can't find what i would need to change to fix it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But assuming this would be the issue, it's hard to me the wrap my head around the fact that this same token can query other datasets from the same workspace and is even used to embed a report that uses this same dataset. Correct me if i am wrong, but user access is set at the workspace level right? So if this SA can access one should be able to have access to all.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the help&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Nov 2024 10:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4296994#M58396</guid>
      <dc:creator>Mosaic_pedro</dc:creator>
      <dc:date>2024-11-22T10:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Access Denied for Power BI REST API Querying Dataset with Dataflows as Data Source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4297215#M58398</link>
      <description>&lt;P&gt;Redo the app registration without delegating.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 12:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-Denied-for-Power-BI-REST-API-Querying-Dataset-with/m-p/4297215#M58398</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-22T12:00:19Z</dc:date>
    </item>
  </channel>
</rss>

