Search code examples
powerbiazure-active-directorysingle-sign-onpowerbi-embedded

View Power BI Embed Report using Single Sign on


we have our existing web application which will be used by our internal users.

Azure AD Authentication is being used to login into the App.

we need to embed the reports in web app and it should be accessing bel to logged in user without separate authentication.

i see we can use power bi embed for your organization for internal users but it still requires user login explicitly.

Please let me know best option to use azure AD single sign on to access power bi reports in my web app

I am expecting to use azure AD single sign on to access power bi reports in my web app


Solution

  • When the user's login to the app for the first time, you can get the access Token in response.

    For Embedding any report, we need embed URL and access Token.

    You can get the access Token from the above and it will be of token Type AAD.

    Use this accessToken as Bearer token to hit the Get Report in Group REST API to get the Embed URL.