Forum Discussion
403 Forbidden when api call
Hi Anonymous ,
A 403 Forbidden Error occurs when a web server forbids you from accessing the page or other resource that you're not allowed to access. Please refer the solutions in the following threads and check if it works for your scenario.
https://community.powerbi.com/t5/Report-Server/HTTP-403-Forbidden-error-on-API-call/m-p/843901
Best Regards
Rena
Hi,
I already gone through these links, but not got exact solution.
Now, for reports which do not have row level security applied I am successfully able to get PDF by calling next api
Get File Of Export To File In Group.
But when I input reports to which Row level security applied from Power bi desktop giving this error
{"error":{"code":"InvalidRequest","message":"Export report requires effective identity to be provided for the report's dataset"}}
Here I thought I should use embed token with roles and identities, so I passed the embed token in Authorization header. But for this now I am getting 403 error.
I can't reach to conclusion whether I stick with access token or I should use embed token both are giving two different errors.
- Anonymous6 years agoNot applicable
Hi Anonymous ,
Please check whether the 2nd post in the following thread can help you:
Best Regards
Rena