Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |