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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Unable to export the report as PDF or image file using SPN through API call

Unable to export the report as PDF or image file using SPN through API call. Getting 403 forbidden error.

 

https://api.powerbi.com/v1.0/myorg/reports/61b208a4-8780-4dfc-80ea-474b19d107af/ExportTo

 

BODY: {"format": "PNG"}
PNG, PDF, CSV none of it worked.

403 Access forbidden to use export API.

 

But as a user we can do.
5 REPLIES 5
Anonymous
Not applicable

Anyone can tell if the SPN can do this activity? User is able to export the report to Image files. If we add SPN in the admin setting its not working.

Anonymous
Not applicable

Hi @Anonymous ,

Please review this official documentation and check whether the related setting for service principal has been configured.

  • Create an Azure AD security group and add service principal into security group
  • Enable the Power BI service admin settings.
  • Add the service principal to your workspace.

In addition, please note that the report with a sensitivity label cannot be exported to a .pdf or a .pptx using a service principal. Also when exporting to .png is not supported.

Limitations

Best Regards

mohammedadnant
Impactful Individual
Impactful Individual

Hi @Anonymous 

 

If you are looking for out of the box solution, then I prefer you to go with Power Automate

check this video to know in detail

https://youtu.be/N2Djm1FH2-A

 

Thanks & Regards,

Mohammed Adnan

Learn Power Plaform using my Youtube Channel TAIK18 click on the name

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18
Anonymous
Not applicable

How do you say that it is an out of box solution. There is a setting in Power BI Admin portal, Export to Image, PDF word. It works for users. Should it not wor for SPN registered as admin of embed capacity workspace?

Anonymous
Not applicable

The report is in embed capacity

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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