Forum Discussion
user authentication needed when uses embed PowerBi
- Anonymous2 years ago
Hi pedroEmb ,
To achieve a single sign-on experience, use the Embed in SharePoint Online option, or build a custom integration by using the user-owns-data embedding method.
Embed a report in a secure portal or website - Power BI | Microsoft Learn
powerbi - View Power BI Embed Report using Single Sign on - Stack Overflow
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.
Best Regards
thanks! Sorry to delay for answering. I read your suggestion but forgot to reply. The IT from my company forbidden to proced on this way, but some tests showed that your suggestion worked out.