<?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: What App permissions are needed for regular Power BI REST API? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/What-App-permissions-are-needed-for-regular-Power-BI-REST-API/m-p/4271588#M58155</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/301940"&gt;@cwollett&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I think your issue is about grant permission to application.&lt;/P&gt;
&lt;P&gt;As far as I know, you need to make sure that your account has permission to the feature you call like you need gateway admin permission to call "Get Gateways" REST API and your application needs to have permission that meet the required scope.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-configure-app-access-web-apis" target="_blank"&gt;Quickstart: Configure an app to access a web API - Microsoft identity platform | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 01:54:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-06T01:54:55Z</dc:date>
    <item>
      <title>What App permissions are needed for regular Power BI REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/What-App-permissions-are-needed-for-regular-Power-BI-REST-API/m-p/4271135#M58150</link>
      <description>&lt;P&gt;I have an app registered in Azure with no Power BI permissions as some of the Admin APIs insinuate you need not have any added for it to work. I do have it added in the appropriate places within the Power BI tenant settings and have been successfully using the Admin APIs for a few years now to get activity/inventory information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extend my API usage to using non-Admin APIs, namely:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get Gateways (&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/get-gateways" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/get-gateways&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;Refresh Dataset (&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset&lt;/A&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This leads me to a series of questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Required scope is Dataset.ReadWrite.All - do I grant that to the app I already have?&lt;/LI&gt;&lt;LI&gt;Will granting that scope break my ability to use the Admin APIs on this same SP?&lt;/LI&gt;&lt;LI&gt;The Gateways endpoints insinuate the user must be a gateway admin - I have tried authenticating with the app as myself, but have not been able to successfully do so on an account using MFA&lt;UL&gt;&lt;LI&gt;If anyone has a python script snippet of the correct MSAL path to use to authenticate an app as a user with MFA, would that override the other issues since I'm an admin and should have permissions across the board?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:31:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/What-App-permissions-are-needed-for-regular-Power-BI-REST-API/m-p/4271135#M58150</guid>
      <dc:creator>cwollett</dc:creator>
      <dc:date>2024-11-05T17:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: What App permissions are needed for regular Power BI REST API?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/What-App-permissions-are-needed-for-regular-Power-BI-REST-API/m-p/4271588#M58155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/301940"&gt;@cwollett&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I think your issue is about grant permission to application.&lt;/P&gt;
&lt;P&gt;As far as I know, you need to make sure that your account has permission to the feature you call like you need gateway admin permission to call "Get Gateways" REST API and your application needs to have permission that meet the required scope.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-configure-app-access-web-apis" target="_blank"&gt;Quickstart: Configure an app to access a web API - Microsoft identity platform | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 01:54:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/What-App-permissions-are-needed-for-regular-Power-BI-REST-API/m-p/4271588#M58155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-06T01:54:55Z</dc:date>
    </item>
  </channel>
</rss>

