Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I have registered an azure app for my service principal, added it to an Azure Security group and added this group to my admin and non-admin api tenant developer settings. The app has been granted the correct API permissions for Power BI Service without any admin consent requirements (see below). I have added the group with admin permissions to all tenant workspaces. Via Powershell I can successfully authenticate using the service principal for non-admin api calls but everytime I attempt to call admin api calls, like the below, I receive "401 Unauthorized"?? Any help appreciated.
Solved! Go to Solution.
I figured this out, my azure app permissions of type "Application" had "Admin consent", as described in the below article, this must be remove:
Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn
I figured this out, my azure app permissions of type "Application" had "Admin consent", as described in the below article, this must be remove:
Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn
Hi,
Thanks for your reply. Yes, this option has been enabled for my security group but I still get the 401?
Thanks.
Hi @powerbi_jenhen ,
According to the error code, it seems that you didn't get the proper permission to access Admin REST API. Please check if you enable the option Allow service principals to use read-only Power BI admin APIs under Admin API settings in Admin portal.
Enable service principal authentication for read-only admin APIs
Best Regards
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |