<?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 PowerBi API on a CGG in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4348771#M58863</link>
    <description>&lt;P&gt;I have switched to the only 2 API permissions for the Application Permissions on Microsoft Power BI Government Community Cloud.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="estuck1991_0-1735838641838.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1221456i6B845D3344D40444/image-size/medium?v=v2&amp;amp;px=400" role="button" title="estuck1991_0-1735838641838.png" alt="estuck1991_0-1735838641838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However still getting 403 forbidden with invalidtoken&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 17:28:38 GMT</pubDate>
    <dc:creator>estuck1991</dc:creator>
    <dc:date>2025-01-02T17:28:38Z</dc:date>
    <item>
      <title>Access PowerBi API on a CGG</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4347492#M58846</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to view reports through API endpoint&amp;nbsp;&lt;A href="https://api.high.powerbigov.us/v1.0/myorg/reports" target="_blank" rel="noopener"&gt;https://api.high.powerbigov.us/v1.0/myorg/reports&lt;/A&gt;.&lt;BR /&gt;I have and app registration in azure with a client secret and permissions on api as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="estuck1991_0-1735682991266.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1221060i5E66B89E781D19DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="estuck1991_0-1735682991266.png" alt="estuck1991_0-1735682991266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using the following I get a token from&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="estuck1991_3-1735683419750.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1221063i274FC7FF38154D0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="estuck1991_3-1735683419750.png" alt="estuck1991_3-1735683419750.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However when i try to use the token i get X-PowerBI-Error-Info: InvalidToken&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="estuck1991_2-1735683229901.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1221062i921E8DDED47092E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="estuck1991_2-1735683229901.png" alt="estuck1991_2-1735683229901.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have set the "Service Principals can use Fabric API's" to a security group and have made sure the azure app registration is in that security group.&lt;BR /&gt;&lt;BR /&gt;Is there something that i am missing in the configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 22:34:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4347492#M58846</guid>
      <dc:creator>estuck1991</dc:creator>
      <dc:date>2024-12-31T22:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access PowerBi API on a CGG</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4347499#M58847</link>
      <description>&lt;P&gt;As I understand it the issue may be with the Delegated scope. Try the app registration again but choose the other, non-delegated option.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 23:55:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4347499#M58847</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-31T23:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Access PowerBi API on a CGG</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4348771#M58863</link>
      <description>&lt;P&gt;I have switched to the only 2 API permissions for the Application Permissions on Microsoft Power BI Government Community Cloud.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="estuck1991_0-1735838641838.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1221456i6B845D3344D40444/image-size/medium?v=v2&amp;amp;px=400" role="button" title="estuck1991_0-1735838641838.png" alt="estuck1991_0-1735838641838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However still getting 403 forbidden with invalidtoken&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 17:28:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4348771#M58863</guid>
      <dc:creator>estuck1991</dc:creator>
      <dc:date>2025-01-02T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Access PowerBi API on a CGG</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4349491#M58871</link>
      <description>&lt;P&gt;Thanks for the reply from lbendlin&amp;nbsp;, please allow me to provide another insight:&amp;nbsp; &lt;BR /&gt;Hi&amp;nbsp; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/859142"&gt;@estuck1991&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the token generated by the service principal runs the API, the application should not grant any delegated permission, but should grant application permission. For specific permisson configuration needs, please refer to this restriction document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#required-scope" target="_blank"&gt;Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the tenant admin setting that needs to be turned on, please refer to this document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-multi-tenancy#prerequisites" target="_blank"&gt;Use service principal profiles to manage customer data in multitenant apps - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 07:28:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-PowerBi-API-on-a-CGG/m-p/4349491#M58871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-03T07:28:12Z</dc:date>
    </item>
  </channel>
</rss>

