Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 months ago
Solved

Power BI Embedding Unauthorized Error-SIMBA Application

I'm reaching out to seek assistance regarding an issue we're encountering while embedding Power BI into our SIMBA application. We are receiving the following error:
Microsoft.Rest.HttpOperationException: 'Operation returned an invalid status code 'Unauthorized'

  • Hii Anonymous 

    The Unauthorized error in Power BI embedding simply means your authentication or permissions are not set correctly. It happens only when required API permissions are missing, the wrong auth method is used (OAuth for internal users, Service Principal for external users), the Service Principal is not enabled in the Power BI Admin portal, the workspace does not give access to the Service Principal, or the Client ID / Tenant ID / Secret is incorrect or expired.These are the reason for the error you are seeing on your screen. 

    Below link show these steps in detail :

    https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal?tabs=azure-portal 

3 Replies

  • Hii Anonymous 

    The Unauthorized error in Power BI embedding simply means your authentication or permissions are not set correctly. It happens only when required API permissions are missing, the wrong auth method is used (OAuth for internal users, Service Principal for external users), the Service Principal is not enabled in the Power BI Admin portal, the workspace does not give access to the Service Principal, or the Client ID / Tenant ID / Secret is incorrect or expired.These are the reason for the error you are seeing on your screen. 

    Below link show these steps in detail :

    https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal?tabs=azure-portal 

  • v-venuppu's avatar
    v-venuppu
    Community Support

    Hi Anonymous ,

    Thank you for reaching out to Microsoft Fabric Community.

    Thank you rohit1991 for the prompt response.

    I wanted to check if you had the opportunity to review the information provided and resolve the issue..?Please let us know if you need any further assistance.We are happy to help.

    Thank you.

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    thank you somuch