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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ceindev
New Member

Fabric API access using service principle

Hello,

 

I have a service principle (via a registered app) that I can successfull call powerbi rest api calls with (For example, calls located here: https://learn.microsoft.com/en-us/rest/api/power-bi/admin).  However, I am unable to make fabric api calls (such as calls located here: https://learn.microsoft.com/en-us/rest/api/fabric/admin/items/list-items?tabs=HTTP).

 

I have tried different scopes, such as ["https://api.fabric.microsoft.com/.default"].

I have also explored API permissions for my registered app but I do not see anything for fabric api (just powerbi).

I have also ensured that fabric api is enabled for the tenant under PowerBI admin.

 

Can someone help explain how to enable access to the fabric api?

2 REPLIES 2
Anonymous
Not applicable

Hi @ceindev ,

To use the Microsoft Fabric REST APIs with a user, you need to acquire an Microsoft Entra token with delegated scopes.

The scopes required by the API are listed in the Required Delegated Scopes section in the API reference page.

Scopes - Microsoft Fabric REST APIs | Microsoft Learn

vrongtiepmsft_0-1711593376888.png

 

 

Best Regards
Community Support Team _ Rongtie

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

Can this be done using a service principal?  The above scopes are not available in Azure under App Registrations.

 

In this link:

https://learn.microsoft.com/en-us/rest/api/fabric/articles/get-started/fabric-api-quickstart

 

The example code microsoft gives uses "PublicClientApplication.AcquireTokenInteractive".  I need to be able to access fabric apis in a similar way that I access the rest of the powerbi rest apis.  That is, within a batch service without user intervention.  Is this possible? 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.