Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Error embedding fabric dashboard

I've been using the Power BI JS API to embed dashboards into my apps. Now, I'm migrating them to a workspace with Fabric-capabilities, and even though I include the application user (Created in Azure) in the Microsoft group associated with the workspace, I get a 401 error when trying to request the token to access the dashboard. Could you tell me what I should do extra

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

I've validated the suggestions but haven't been able to make it work.

The Fabric Workspace in which I want to enable embedding doesn't have the option from POWER BI to include users (in the previous one I could).

mralmanzar_1-1715006508702.png

As I understand it, that should be done by office365 group management. I've already included the same user I used previously in the Power BI worspace.

mralmanzar_0-1715006453264.png

Even so, you still get a 401 error when requesting the dashboard access token.

mralmanzar_2-1715007743197.png

Anonymous
Not applicable

Hi, @Syndicate_Admin 

According to your description,401 error usually indicates an unauthorized request, which can be due to a number of reasons. You can check the following points.

1. Ensure that the service body has been correctly added to the workspace to be enabled.
powerbi - Unauthorized (401) Power BI Embedded using the samples Node and .NET - Stack Overflow

2. Ensure that the workspace and its underlying dataset are not in My Workspace. If the dataset is in My Workspace, try moving it to another workspace.
javascript - 401 Unauthorized error when trying to generate an embed token for PowerBI report - Stac...

3. Error debugging, you can also add an error event listener to the embedded code or use a tool such as Fiddler to monitor HTTP traffic and find out more details about the error may be helpful.

How to troubleshoot and debug your embedding code in Power BI embedded analytics | Microsoft Learn
Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum



Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.