Forum Discussion
Real time error 401 in embeded scenario
Hi TransDig ,
According to the error message, it seems that the problem was caused by insufficient privileges. Which authentication method you are using when embedded the report? Service principal or Master user? If you are using service principal, please check if grant the proper access for below steps:
Step 6 - Service principal API access
Step 7 - Enable workspace access
In addition, the following links are the ones which have the similar problem as yours. Hope their solution can help you solve the problem.
401 Unauthorized: Error while retrieving Embed URL (embed power bi for customers-Python)
Power Bi REST API - 401 Authorization error when using Service Principals
Power BI REST API - 401 Authorization error when using app secret/service principal
Best Regards