Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
There seems to be some issues with the ExportToFileInGroupAsync. I have followed the documentation provided on the docs pages, and verified that all steps are OK.
I'm running the code with service principal, and the service principal has been added to an AD group which has Administrator access to the workspace where the report I want to generate exist.
Code:
var export = await pbiClient.Reports.ExportToFileInGroupAsync(groupId, reportId, exportRequest);
Error code:
Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden'
To validate that I actually have access to the PowerBI service I have tried to run var reports = await pbiClient.Reports.GetReportsInGroupAsync(groupId); and verified that I can retrieve a list of the reports I try to access. This works fine without any issues.
Please provide some guidance on this.
Hi @Frankfh ,
Premium Per User (PPU) is not supported. Please refer the content in the following links, hope they can help you resolve the problem.
Invalid Status Code Forbidden after client.Dashboards.GenerateTokenInGroupAsync
Best Regards
I'm using a service principal so no license involved. Shouldn't this API be available on a developer capacity aswell?
The docs says to use either a master user or a service principal to authenticate.
Hi @Frankfh ,
Please check whether it hit any of following limitations:
Best Regards
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |