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

Join 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.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.