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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm trying to use the API to export a report that's being embedded into one of our applications, however I keep getting a Forbidden error, however I know my authenticaion mechanism is fine as I can do other stuff via the API like refreshing reports, generating embeed tokens etc.
I read somewhere that it might be due to my user accounts subscription tier (Pro). Can anyone here confirm if I need to go Premium to access this functionality?
Here is the code in case you're wondering what I'm doing
public async Task<string> ExportReport(Guid groupId, Guid reportId, FileFormat format)
{
var authenticationResult = await _authContext.AcquireTokenAsync(_resourceUrl, _credential);
var tokenCredentials = new TokenCredentials(authenticationResult.AccessToken, "Bearer");
using (var client = new PowerBIClient(new Uri(_apiUrl), tokenCredentials))
{
var request = new ExportReportRequest(format);
// this line below is where I get the forbidden
var export = await client.Reports.ExportToFileAsync(groupId, reportId, request);
var result = await PollExportRequest(client, reportId, groupId, export.Id, 5);
// rest of the code ommited for brevity
}
}
any help would be greatly appreciated.
Solved! Go to Solution.
Hi @dresp
For reference: Limitations of Export Power BI report to file (preview)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dresp
For reference: Limitations of Export Power BI report to file (preview)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@dresp Maybe check the Tenant settings for Export and sharing settings in the Admin portal?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 4 | |
| 3 | |
| 3 |