Forum Discussion
Fabric API access using service principle
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
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.
- ceindev2 years agoNew Member
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?