This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello, for the past few days I have struggled to embed a dashboard (not report) in AppOwnsData mode.
I started with embedding a report, which went smoothly. I used the example code available here: https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/NodeJS/Embed%20for%20your%20custo...
The only issue I had was with the RLS and having to add an additional "identity" parameter to the request.
Later I created similar functions for retrieving dashboard embed token following the documentation.
First I send а request to list all pinned dashboards in the given workspace (https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/getdashboards). From that, I get dashboard id, name, and embed Url (which are also available in PowerBI service under share)
Second I used the dashboard id, dataset id, group id, and effective identity to generate an embed token (https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup). So far so good, I was able to get an embed token for all pinned dashboards in my workspace.
However, I am not able to display the dashboards in the web app. I thought I made some mistake in code when displaying it, so I tried in the dashboard sample Playground (https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html).
I supplied the embed token, dashboard id, and embed URL to the playground.
What I got in return was the same error ( "message": "Dashboard Embed: Fail to initialize - Could not initialize dashboard").
I can supply code, but I don't think it is necessary, since I am getting a valid response from the PowerBI API.
Does anyone have any suggestions on what might be going wrong? Why is the dashboard embed token not working?
Also how can I check the request id for more info (requestid: f5aed91c-5935-4e0a-a224-1f5ccf24a97f) ?
(https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/dashboards_generatetokeningroup)
HI @Gergan,
I'd like to suggest you check the prerequisite step of embed if you did not correct config these permissions.
Register an Azure AD application to use with Power BI
In addition, how did your security group and workspace configured? Can you please share more detail?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |