Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am calling "https://api.powerbi.com/v1.0/myorg/groups/{0}/reports/{1}/ExportTo" Api in my mvc application.
HttpWebRequest request = System.Net.HttpWebRequest.CreateHttp(string.Format("https://api.powerbi.com/v1.0/myorg/groups/{0}/reports/{1}/ExportTo", workspaceId,reportId1));
request.KeepAlive = true;
request.Method = "POST";
request.ContentType = "application/json";
streamWriter.Write(json);
}
var response = (HttpWebResponse)request.GetResponse();
Here i was getting access token like this,
Now I got the 403 forbidden error with no text.
Can anyone please help me to understand this why it is giving 403 error.
Are you using a Pro account or do you have Premium/Embedded capacity? Somebody else recently was having a similar issue.
You could check the Issues forum here:
https://community.powerbi.com/t5/Issues/idb-p/Issues
And if it is not there, then you could post it.
If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
we are on Power-Bi embedded capacity
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
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.
Hi @Anonymous ,
Please check whether the 2nd post in the following thread can help you:
Best Regards
Rena
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
32 | |
27 | |
22 | |
22 |
User | Count |
---|---|
63 | |
49 | |
31 | |
24 | |
20 |