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.
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?
Solved! Go to Solution.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
27 | |
3 | |
2 | |
2 | |
2 |