Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
I'm trying to embed my simple Power BI report into my web application by using Microsoft.PowerBI.Api package for .NET.
I'm using a service principal that has Admin rights in Microsoft Fabric workspace. The embedding token is returned successfully. But the data is not loaded
I found that there is 403Error which could be a problem
Could anyone help me to figure out what's wrong and how to fix that?
More details:
I'm using this code example to embed https://github.com/microsoft/PowerBI-Developer-Samples
Looks like a CORS issue - likely your app and the warehouse are in different locations ?
what do you mean? I try to run app on my local machine first to see the result and it doesn't work
for example, if I put an image in the report - I can see that image but the simple table with data from warehouse :
Hi @Marusyk ,
According to your screenshot, I think 403 forbidden is authorization error.
Please make sure you have configured the service principal correctly.
You may refer to this offical blog:
For more details about app owns data : Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the info but I followed this guide and granted access to the service principal for all places where it is possible - it's an Admin for my workspace. I can get the report list in the code
`var embedToken = pbiClient.EmbedToken.GenerateToken(tokenRequest);`
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |