Forum Discussion
powerbi_jenhen
3 years agoResolver II
Admin API's and Service Principal Authentication = 401 Unauthorized
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 gra...
- 3 years ago
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
Anonymous
3 years agoNot applicable
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