Forum Discussion
PowerBINotAuthorizedException ServicePrincipal despite all access done
- Anonymous3 years ago
Hi BoNDoK00 , it looks like you are trying to connect using a Service Principal to use the Power BI Admin Rest API. There is an important part in the documentation: Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn
If you delete all the Power BI API setting in the Azure Portal the "PowerBINotAuthorizedException" should be avoided.
Hi BoNDoK00 , it looks like you are trying to connect using a Service Principal to use the Power BI Admin Rest API. There is an important part in the documentation: Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn
If you delete all the Power BI API setting in the Azure Portal the "PowerBINotAuthorizedException" should be avoided.