cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
phchu1226
Helper III
Helper III

About using the API to export report from PowerBI

Dear All,

 

I am trying the API (Reports - Export To File) on the microsoft webpage and got the HTTP code 403, do anyone know why? 

phchu1226_0-1626244240446.png

 

phchu1226_1-1626244240449.png

 

I already consented the related permissions on the account, and I am using pro license.

phchu1226_2-1626244241217.png

 

phchu1226_3-1626244240314.png

 

 

Do I need to consent more permission or need a premium license to do so?

Thank you.

 

1 ACCEPTED SOLUTION

Hi, @phchu1226 

If you are referring to the exportToFile API, please check this related document.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to

 

The feature is still in preview and is limited to Premium capacities.

25.png

Best Regards,
Community Support Team _ Eason


 

 

View solution in original post

3 REPLIES 3
phchu1226
Helper III
Helper III

Hi @v-easonf-msft,

Checked the authorization token, granted all permission of PowerBI Service as below.

phchu1226_2-1627027494326.png

phchu1226_3-1627027588489.png

 

Then, I tried the RESTful API "Report - Export To File" again, the respond code is still 403..

May I know is it the limitation of "Pro" license, I need to purchase a "Premium" license in order to do so?

Thanks.

 

Calvin

Hi, @phchu1226 

If you are referring to the exportToFile API, please check this related document.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to

 

The feature is still in preview and is limited to Premium capacities.

25.png

Best Regards,
Community Support Team _ Eason


 

 

View solution in original post

v-easonf-msft
Community Support
Community Support

Hi, @phchu1226 

Please check the authorization token. You need to contacted your administrator and asked him to grant permissions to the token.

For more details, you can refer to this same topic in the developer forum.

Access-token-lacks-authorisation 

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors