Forum Discussion
Is master account required when embedding for your organization?
- Anonymous6 years ago
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-for-power-bi-users-user-owns-dataThen, 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-for-power-bi-users-user-owns-data
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-for-power-bi-users-user-owns-data
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-for-power-bi-users-user-owns-data
Hope this helps, Matt