Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
cwollett
Advocate I
Advocate I

What App permissions are needed for regular Power BI REST API?

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.

 

I want to extend my API usage to using non-Admin APIs, namely:

This leads me to a series of questions:

  • Required scope is Dataset.ReadWrite.All - do I grant that to the app I already have?
  • Will granting that scope break my ability to use the Admin APIs on this same SP?
  • 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
    • 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?
1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @cwollett ,

 

According to your statement, I think your issue is about grant permission to application.

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.

For reference:

Quickstart: Configure an app to access a web API - Microsoft identity platform | Microsoft Learn

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @cwollett ,

 

According to your statement, I think your issue is about grant permission to application.

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.

For reference:

Quickstart: Configure an app to access a web API - Microsoft identity platform | Microsoft Learn

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.