Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
mtavana66
Frequent Visitor

Add Logout Button or Action Support in Power BI Report Server Reports

Hi everyone,

I’m using Power BI Report Server with Forms Authentication (CustomSecurity), and everything is working fine so far. But now I’m trying to add a **Logout button directly inside my PBIX reports**.

I’ve already created a custom `Logout.aspx` page that clears the session and redirects to the login page. The page works correctly **when accessed directly** from the browser.

But here’s the problem:

- When I add a Web URL action to a button in the report (pointing to my logout URL), it always opens in a **new tab**.
- This means the original tab (with the session) is still open, and if the user goes back or refreshes it, they’re **still logged in**.
- Ideally, I want the logout to happen **in the same tab**, and the session to fully expire so that the user has to log in again if they come back.
So I have two questions:
Is there any supported or recommended way** to fully log out a user from within a report (PBIX), and force re-login if they come back?
I’d really appreciate any suggestions, workarounds, or plans for supporting this kind of functionality in future releases.

Thanks a lot!

4 REPLIES 4
rohit1991
Super User
Super User

Hi @mtavana66 ,

 

Unfortunately, as of now, there’s no supported way to log a user out from within a PBIX report in the same tab. Power BI Report Server’s web URL actions always open in a new tab by design, and there’s no way to override that behavior from inside the report. So even if you hit a Logout.aspx that clears the session, the original tab stays alive and still holds the session. 

 

Here are a few things that you can try. I added a tooltip or note next to the logout button saying “Close this tab after clicking logout to fully exit your session.”

 

If you're embedding these reports in a custom web app, you can fully control session and logout behavior there that’s where same-tab logout becomes feasible.  


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Hi, thank you so much for the clarification.

I understand that this is not currently by design, but honestly it’s quite limiting — especially in secure environments or shared devices where logging out properly is critical.

The fact that Web URL actions always open in a new tab (and the original session stays alive) makes it almost impossible to provide a proper logout experience for users inside reports.

It would be really helpful if future versions of Power BI Report Server could support either:
- A built-in logout action (that works in the same tab), or
- At least an option to change the target behavior (e.g., open in _self instead of _blank)

We love using PBIRS and its flexibility, but not having control over something as basic as logout really limits the ways we can deliver secure and user-friendly solutions to our users.

I hope this gets considered in your roadmap, it's definitely a pain point for us.

Thanks again! 🙏🌹

Hi @mtavana66 ,

Thanks for reaching out to the Microsoft fabric community forum.

@rohit1991 ,

Thanks for your prompt response

Add Logout Button or Action Support in Power BI Report Server Reports  I recommend submitting this scenario as a feature request on the official Power BI Ideas forum. The Product Team actively monitors submissions there, and suggestions with strong community support are often considered for future updates.

 
Best Regards,
Lakshmi

Hi @mtavana66 ,

 

Just following up to see if you had a chance to vote for Add Logout Button or Action Support in Power BI Report Server Reports  feature in the Ideas forum.

Let me know if you’ve already submitted it or need any help  happy to assist!

Best regards,
Lakshmi

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.