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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
NenadV
Helper III
Helper III

Is master account required when embedding for your organization?

I am trying to embed power bi report into my organizations internal web app, so I have one question regarding embeding for your organization approach. In "Embed Power BI content with service principal and an application secret" article in power bi documentation I read that you can not use service principal when embeding for your organization. But also, in microsoft power bi sample applications code there are no fields for entering master account credentials, so I suppose that master account is not required for embeding for your organization. So I am not sure how it is working, what is the way my application authenticate to Power BI?

1 ACCEPTED SOLUTION
MattCalderwood
Responsive Resident
Responsive Resident

Hi @NenadV 

If you are embedding for your organisation and the users accessing your application all have Power BI Pro licences - OR the organisation has bought some premium capacity, then you can embed - but you need to generate an Azure Authentication token on behalf of the user using the app.

This article might point you in the right direction... Just make sure you follow the 'User Owns Data' route.
https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token#access-token-f...

 

Then, once you have an Azure AD token for the given user... you can specify the AAD token type, and supply the token to the JavaScript embedding configuration.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token#access-token-f...

Hope this helps, Matt

View solution in original post

1 REPLY 1
MattCalderwood
Responsive Resident
Responsive Resident

Hi @NenadV 

If you are embedding for your organisation and the users accessing your application all have Power BI Pro licences - OR the organisation has bought some premium capacity, then you can embed - but you need to generate an Azure Authentication token on behalf of the user using the app.

This article might point you in the right direction... Just make sure you follow the 'User Owns Data' route.
https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token#access-token-f...

 

Then, once you have an Azure AD token for the given user... you can specify the AAD token type, and supply the token to the JavaScript embedding configuration.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token#access-token-f...

Hope this helps, Matt

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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