Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Zulaikha
Frequent Visitor

Embed into web application using API

Hi All,
I'm embedding a powerbi report into a web application using Service Principal.

Zulaikha_0-1731299447414.png

 

Currently we have PowerBI PRO license. But it is getting embedded along with 

Zulaikha_1-1731299539458.png

 

Any idea how to resolve this?

 

1 ACCEPTED SOLUTION
Poojara_D12
Super User
Super User

To embed a Power BI report in a web application using a Service Principal, you’ll need a Power BI Premium or Premium Per User (PPU) license. A Power BI Pro license alone won’t support embedding for external users or clients, which seems to be the issue here.

Here’s a step-by-step outline to resolve it:

1. Upgrade to Premium/PPU Capacity:

  • Premium Capacity (P1, P2, etc.): If your organization can manage Premium capacity, this will allow multiple users to access embedded reports without additional Pro licenses.
  • Premium Per User (PPU): If upgrading to Premium Capacity isn’t feasible, you can use PPU, which is less expensive. However, each user who needs to view the report will require a PPU license.

2. Check Authentication Permissions for Service Principal:

  • Ensure that your Service Principal is properly set up in Azure AD with permissions to the Power BI APIs and that it has the necessary permissions on the workspace where your reports reside.
  • Your Service Principal needs "App Workspace Admin" access to the workspace.

3. Embedding Setup:

  • Verify your embedding code is using the Power BI REST API correctly to generate the embed token for the Service Principal.
  • Use app owns data embedding mode if embedding for external clients, which typically requires the application to authenticate directly against the Power BI API using the Service Principal.

4. Test Access with Embedded Code:

  • Once configured, test the embedded report to ensure that it is accessible in your web application.

By following these steps, you should be able to set up the Service Principal for embedding with the correct licensing.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

View solution in original post

1 REPLY 1
Poojara_D12
Super User
Super User

To embed a Power BI report in a web application using a Service Principal, you’ll need a Power BI Premium or Premium Per User (PPU) license. A Power BI Pro license alone won’t support embedding for external users or clients, which seems to be the issue here.

Here’s a step-by-step outline to resolve it:

1. Upgrade to Premium/PPU Capacity:

  • Premium Capacity (P1, P2, etc.): If your organization can manage Premium capacity, this will allow multiple users to access embedded reports without additional Pro licenses.
  • Premium Per User (PPU): If upgrading to Premium Capacity isn’t feasible, you can use PPU, which is less expensive. However, each user who needs to view the report will require a PPU license.

2. Check Authentication Permissions for Service Principal:

  • Ensure that your Service Principal is properly set up in Azure AD with permissions to the Power BI APIs and that it has the necessary permissions on the workspace where your reports reside.
  • Your Service Principal needs "App Workspace Admin" access to the workspace.

3. Embedding Setup:

  • Verify your embedding code is using the Power BI REST API correctly to generate the embed token for the Service Principal.
  • Use app owns data embedding mode if embedding for external clients, which typically requires the application to authenticate directly against the Power BI API using the Service Principal.

4. Test Access with Embedded Code:

  • Once configured, test the embedded report to ensure that it is accessible in your web application.

By following these steps, you should be able to set up the Service Principal for embedding with the correct licensing.

 

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.