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

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.

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.

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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