Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

API ExportTo method (preview) - "API is not accessible for application" 403 response

We're trying to export a report to PDF format using the new ExportTo API method but are getting a 403 error "API is not accessible for application". Other methods like 'Get Reports In Group' work fine. The POST we're using is in format:

 

https://api.powerbi.com/v1.0/myorg/reports/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/ExportTo

 

We've purchased a premium node, and the workspace that the report is in has been migrated to a premium capacity. We're also using Service Principal to authenticate.

 

Are there any special application scopes that need to be set or any special steps to be take as this operation is still 'in preview'? Does the ExportTo feature support ServicePrincipal?

 

Kind Regards,

 

David

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Sorted - was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Sorted - was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version.

I have no idea what you mean by "was using the MyWorkspace version by mistake. Needed to use the "Export To File In Group" version".  Can you please elablorate so myself and others that are having the issue can understand, please?

 

EDIT:

I think you meant to use:

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup

Rather than using: 

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile

 

I was able to get past the 403 error by adding identity like below. 

 

{
   "format":"PDF",
   "powerBIReportConfiguration":{
      "pages":[
         {
            "pageName":"ReportPageName"
         }
      ]
   },
   "identities":[
      {
         "username":"test@example.com",
         "datasets":[
            "00000000-0000-0000-0000-000000000000"
         ],
         "roles":[
            "yourrole"
         ]
      }
   ]
}

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors