Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi all,
I keep getting a 403 response on my attempt to export a report to PDF in a Python script.
Below permissions in my Azure app (they are not available as 'application' permission, only as delegated):
What's happening here and how can I solve this problem?
Thanks.
Hi @Noeleke1301 ,
You wrote: I'm getting a token as response on the GenerateToken API,
Do you refer to the API for generating an embed token? The call to the "Export to File" API should be done with an AAD token (like any other API).
Did you check in the reponse message has additional information in the message body besides the returned error code?
I've solved it now by changing the grant_type to 'password'.
Nobody who can help me with this issue?
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.