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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
akanane
Frequent Visitor

Issue with MS Fabric REST API : PowerBINotAuthorizedException

Hello everyone,

 

I am encountering issues while trying to access the admin scope of the Fabric REST API. Here's the steps that I followed:

Created an app registration in Azure AD

Set up a security group and assigned the roles Fabric Administrator (and Power Platform Administrator)

- Added the service principal to this security group

- Added API permissions Tenant.Read.All & Tenant.ReadWrite.All

- Created a secret & used it to get token (successful and with the right scopes):

akanane_1-1701432013230.png

 

However, i couldn't list all the workspaces (PowerBINotAuthorizedException)

akanane_0-1701431859356.png


Notes:

- both scopes powerbi & fabric don't work

- when i authentify with an admin account using MSAL's PublicClientApplication, i can list all the workspaces

I've thoroughly checked the setup, but I'm unable to identify the issue. Any guidance or insights would be greatly appreciated.

Thank you

 

2 ACCEPTED SOLUTIONS
v-cboorla-msft
Microsoft Employee
Microsoft Employee

@akanane 

 

Thanks for using Microsoft Fabric Community.

 

Apologies for the inconvenience that you are facing.

Currently Service principals are not supported in using the Microsoft Fabric REST API's

For more details please refer Link.

 

I hope this helps. Please do let us know if you have any further questions.

View solution in original post

Hi @akanane 


We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help .

 

Thanks

View solution in original post

3 REPLIES 3
v-cboorla-msft
Microsoft Employee
Microsoft Employee

@akanane 

 

Thanks for using Microsoft Fabric Community.

 

Apologies for the inconvenience that you are facing.

Currently Service principals are not supported in using the Microsoft Fabric REST API's

For more details please refer Link.

 

I hope this helps. Please do let us know if you have any further questions.

Hi. Is this still a limitation? I see conflicting information in the docs. Below links suggest that we can use Entra ID app to work with Fabric REST APIs:

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

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

 

I followed these steps but still can't get it to work.

Hi @akanane 


We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help .

 

Thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.