Forum Discussion
is there a way to not need to authenticate when using iframe?
Hi Community,
I am trying to embed my report with Iframe.
After I made html file with Iframe that was gained from Power BI service, I could open the report with html file.
However, whenever open the web page, it requires sign in again, so is there any way to fix static id / password, or skip to sign in page when I open the report with html file?
I wanted to be able to display the iframe without having to authenticate every time.
- Anonymous1 year ago
Totally get the issue, having to sign in every time you open a Power BI report via an <iframe> can be a pain, especially if you're trying to create experience for your users.
Here’s the deal, y its ask about sign-in. The <iframe> link you get from Power BI Service is meant for internal use it’s called “Embed for your organization.” That means it will always ask users to authenticate with their Microsoft account. There’s no way to “fix” a static ID/password or bypass that login screen with this method.
If you want to embed a Power BI report without requiring sign-in, you’ll need to use the “Embed for your customers” method. This is a secure and flexible way to show reports to users without asking them to log in.
Here’s how it works,
- You register an app in Azure AD.
- You authenticate using a service principal or a Power BI Pro user.
- You generate an embed token using Power BI REST API.
- You embed the report using JavaScript (not just a plain <iframe>).
- Your users see the report—no login required!
This method is perfect for public websites or apps where you don’t want users to deal with Microsoft sign-in screens.
For more details, check out Microsoft’s official guide here Embed for your customers (App owns data) .
_________________________________________________________________________________________________________________________
If this response helps, consider marking it as “Accept as solution” and giving a “kudos” to assist other community members.
Thank you,
Akhil.
2 Replies
- AnonymousNot applicable
Totally get the issue, having to sign in every time you open a Power BI report via an <iframe> can be a pain, especially if you're trying to create experience for your users.
Here’s the deal, y its ask about sign-in. The <iframe> link you get from Power BI Service is meant for internal use it’s called “Embed for your organization.” That means it will always ask users to authenticate with their Microsoft account. There’s no way to “fix” a static ID/password or bypass that login screen with this method.
If you want to embed a Power BI report without requiring sign-in, you’ll need to use the “Embed for your customers” method. This is a secure and flexible way to show reports to users without asking them to log in.
Here’s how it works,
- You register an app in Azure AD.
- You authenticate using a service principal or a Power BI Pro user.
- You generate an embed token using Power BI REST API.
- You embed the report using JavaScript (not just a plain <iframe>).
- Your users see the report—no login required!
This method is perfect for public websites or apps where you don’t want users to deal with Microsoft sign-in screens.
For more details, check out Microsoft’s official guide here Embed for your customers (App owns data) .
_________________________________________________________________________________________________________________________
If this response helps, consider marking it as “Accept as solution” and giving a “kudos” to assist other community members.
Thank you,
Akhil.- LeonardoAlSilvaAdvocate I
Awesome Anonymous , this will help me a lot! Thank you!! 🤜🤛