Power BI Embedding using ServicePrincipal

Occasional Visitor

I am trying to embed a Power BI report using ServicePrincipal  for Customers. I have followed all the steps  that are given in Microsoft Documentation  https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-cor...  and provided credential as per ServicePrincipal requirement


I am using MVC Application for  Power BI Report Embedding. When i try to get the all list of report from Power BI Workspace  by using WorkspaceID  with the method GetReportsInGroup() I am getting this error message 





Microsoft.Rest.HttpRequestMessageWrapper : Operation returned an invalid status code 'Unauthorized'






Can someone help why this error occurring? All required access has given into Power BI.

0 Replies