Forum Discussion
Dataset.Read.All is not available under Application Permissions in Azure AD for Power BI API
- 1 year ago
Hi rodrigo09062015 ,
Thanks for your response. You can capture a specific visual from a Power BI report using the Export To File API, but there are a few things to keep in mind.
1. The report needs to be in a workspace with Premium or PPU capacity
2. You’ll need to use a service principal to make the export call
The visual needs to be part of a report, not just placed on a dashboard. Dashboard tiles aren’t currently supported by this API, but as long as your visual is on a report page, you can export it as a PNG, PDF, or PPTX file. Dashboard tiles aren’t supported in this API, but if your visual lives on a report page, you’re good to go and you can export it to PNG, PDF, or PPTX.
Here are some useful links to help you get started
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
I Hope this helps.
Thanks ®ards,Yugandhar.
Hi rodrigo09062015 ,
Thank you for engaging with the Microsoft Fabric Community. Just to add a bit more context to anilelmastasi , response. Dataset.Read.All isn’t available under Application permissions in Azure AD, which is expected. Reading or querying datasets requires user context, meaning someone must be signed in. That’s why Dataset.Read.All and Dataset.ReadWrite.
All are only available as Delegated permissions, used when an app acts on behalf of a signed in user through OAuth2. If your app uses a service principal or operates without user interaction, it relies on Application permissions, which don’t provide dataset level access.
Helpful refrence:
Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn
Power BI REST APIs semantic model permissions - Power BI | Microsoft Learn
Microsoft Graph permissions reference - Microsoft Graph | Microsoft Learn
Hope this clears it up.
Regrads,
Community Support Team.