Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am trying to embed a Power BI dashboard into one of our analytics applications. We have several dashboards and paginated reports that already successfully embed, but the dashboard in question has a paginated report embedded within the dashboard. The paginated report also points to a different dataset than the main dataset the dashboard is pointing to. I think this is causing some authentication issues between the token being passed from our app to the dataset when we embed. Is there a way to allow our application to authenticate both datasets here?
Hi @mh10
To address this, you'll want to leverage the capability of generating an embed token that supports multiple items, including reports and datasets. This approach allows your application to authenticate and access multiple datasets within the same embedding session. Here's a concise action plan:
Generate a Multi-Resource Embed Token: Use the Power BI REST API to generate an embed token that includes permissions for both the dashboard's primary dataset and the dataset used by the paginated report. Ensure that 'datasets' parameters in your API request include both dataset IDs. For more information on generating an embed token for multiple items, please refer to the documentation Connect a Power BI report to a dataset using dynamic binding - Power BI | Microsoft Learn
Embed with Proper Permissions: When embedding the dashboard and paginated report, ensure that the embed configuration in your application uses the multi-resource embed token. This token should provide the necessary permissions to access both datasets.
Review Dataset Access: Ensure that the service principal or master user account used by your application has the appropriate permissions on both datasets. This is crucial for the multi-resource embed token to work correctly.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
When creating the token both dataset GUIDs need to be listed.
User | Count |
---|---|
33 | |
17 | |
13 | |
10 | |
8 |
User | Count |
---|---|
51 | |
31 | |
24 | |
17 | |
15 |