<?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 - DataflowUnauthorizedError - You do not have permissions to manage this dataflow in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006479#M53657</link>
    <description>&lt;P&gt;Managed to solve it!&lt;BR /&gt;&lt;BR /&gt;In the question I mentioned that I can't GET&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/%7BgroupId%7D/dataflows" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows&lt;/A&gt;&amp;nbsp;from a specific &lt;EM&gt;&lt;STRONG&gt;{groupId}&lt;/STRONG&gt;&lt;/EM&gt;, it is because I don't have access to that &lt;STRONG&gt;workspace&lt;/STRONG&gt;, somehow&amp;nbsp;I did get that workspace from &lt;STRONG&gt;/admin scope&lt;/STRONG&gt;. So when I tried to access&amp;nbsp;&lt;EM&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;it gives me the &lt;STRONG&gt;DataflowUnauthorizedError&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conclusion, I had to add the registered app to the &lt;STRONG&gt;workspace&lt;/STRONG&gt; and have the &lt;STRONG&gt;Data.Flow.Readall&lt;/STRONG&gt; scope.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 08:11:40 GMT</pubDate>
    <dc:creator>chandara</dc:creator>
    <dc:date>2024-06-24T08:11:40Z</dc:date>
    <item>
      <title>REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4003554#M53535</link>
      <description>&lt;P&gt;I'm following this document,&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-dataflow-transactions" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-dataflow-transactions&lt;/A&gt; , t&lt;/P&gt;&lt;P&gt;So, I'm accessing this dataflow transactions endpoint&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions&lt;/A&gt;&amp;nbsp;via REST API but recieved&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"error":{"code":"DataflowUnauthorizedError","message":"You do not have permissions to manage this dataflow."}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to fetch the Dataflow lists level by using &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/admin/groups/{groupId}/dataflows&lt;/A&gt;&amp;nbsp;instead of&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows&lt;/A&gt;&amp;nbsp;because fetching this one got&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{'error': {'code': 'DataflowInternalError', 'pbi.error': {...}}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used an app credentials which registered in Azure AD, which I asked the admin to enabled required permissions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Dataflow.Read.All&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 21 Jun 2024 07:51:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4003554#M53535</guid>
      <dc:creator>chandara</dc:creator>
      <dc:date>2024-06-21T07:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4004055#M53545</link>
      <description>&lt;P&gt;Check your token at jwt.io - it may be missing the required scope.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 12:20:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4004055#M53545</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-21T12:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006036#M53651</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "aud": "https://analysis.windows.net/powerbi/api",
  "iss": "https://sts.windows.net/[REDACTED]/",
  "iat": 1719196276,
  "nbf": 1719196276,
  "exp": 1719200176,
  "aio": "E2dgYLgrz3f3c6PCxuraFxsVVVftBgA=",
  "appid": "[REDACTED]",
  "appidacr": "1",
  "idp": "https://sts.windows.net/[REDACTED]/",
  "idtyp": "app",
  "oid": "[REDACTED]",
  "rh": "0.ATkAYkkmpb624k-pdnh1y3Dc8QkAAAAAAAAAwAAAAAAAAAA5AAA.",
  "sub": "[REDACTED]",
  "tid": "[REDACTED]",
  "uti": "r-AHRRWExUeLbRCdD1U8AA",
  "ver": "1.0",
  "xms_idrel": "6 7"
}&lt;/LI-CODE&gt;&lt;P&gt;Thank you for your response, and sorry for getting back late!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the payload from jwt.io, but I don't know which field is referred to scope!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 02:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006036#M53651</guid>
      <dc:creator>chandara</dc:creator>
      <dc:date>2024-06-24T02:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006138#M53653</link>
      <description>&lt;P&gt;So just to break down, I request the token with this info&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
        'grant_type': 'client_credentials',
        'login_url': 'https://login.microsoftonline.com/{tenant_guid}/oauth2/v2.0/token',
        'scope': 'https://graph.microsoft.com/.default'
}&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;P&gt;I believe the scope is automatically resolve?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 04:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006138#M53653</guid>
      <dc:creator>chandara</dc:creator>
      <dc:date>2024-06-24T04:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - DataflowUnauthorizedError - You do not have permissions to manage this dataflow</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006479#M53657</link>
      <description>&lt;P&gt;Managed to solve it!&lt;BR /&gt;&lt;BR /&gt;In the question I mentioned that I can't GET&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/%7BgroupId%7D/dataflows" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows&lt;/A&gt;&amp;nbsp;from a specific &lt;EM&gt;&lt;STRONG&gt;{groupId}&lt;/STRONG&gt;&lt;/EM&gt;, it is because I don't have access to that &lt;STRONG&gt;workspace&lt;/STRONG&gt;, somehow&amp;nbsp;I did get that workspace from &lt;STRONG&gt;/admin scope&lt;/STRONG&gt;. So when I tried to access&amp;nbsp;&lt;EM&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dataflows/{dataflowId}/transactions&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;it gives me the &lt;STRONG&gt;DataflowUnauthorizedError&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Conclusion, I had to add the registered app to the &lt;STRONG&gt;workspace&lt;/STRONG&gt; and have the &lt;STRONG&gt;Data.Flow.Readall&lt;/STRONG&gt; scope.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 08:11:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-DataflowUnauthorizedError-You-do-not-have-permissions/m-p/4006479#M53657</guid>
      <dc:creator>chandara</dc:creator>
      <dc:date>2024-06-24T08:11:40Z</dc:date>
    </item>
  </channel>
</rss>

