Forum Discussion

Merry's avatar
Merry
Regular Visitor
5 years ago
Solved

PowerBI Embedded Service Principal PowerBINotAuthorizedException with Viewer accesse

I implemented powerBi embeded in an onpremise application and used the Service Principal method.

Everything works fine and report is showing correctly . The service Principal has Admin or Memebr access in power BI Workspace that the report exists as it is suggested in the below link

 

Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Docs

 

However I do not understand why we need the Memeber or Admin access in Power BI Workspace for that service principal?

If I change the access to View or Contributer I will get 401 on error PowerBINotAuthorizedException when calling PowerBiEmbedToken

 

Any Insignt Will be apprecaited.

 

Thanks,

 

4 Replies