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 nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. 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?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |