Bypass the Azure AD SSO “choose an account” prompt when calling the end_session_endpoint logout URL

AdeRB 31 Reputation points

Hello, I'm new to SSO, but we have a situation where for specific use-cases we need to logout Windows users from their AAD sessions (all through Chrome), and we would like to do this automatically (e.g. after the screen is locked and a period of inactivity has expired).

After reading the Azure OIDC Protocols signout documentation we tried (using a script) fetching the end_session_endpoint from, and calling the logout endpoint, however the 'Pick an Account' user prompt appears which requires user interaction before the user is logged out, and therefore doesn't help us automatically log the user out.

Is there a way of avoiding this user prompt so that the logout can occur automatically, e.g. to pass the session details? Alternatively is there another method that we could explore for a specific set of users (we don't want to reduce the AAD session timer for all users).

Many thanks.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,146 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,586 Reputation points

    Hello @AdeRB ,

    Thanks for reaching out.

    This is an expected behavior (Pick an account) with v2.0 endpoint during logout ( and our engineering team is working on feature request which skip the picker and sign out a user automatically, but we don't have any ETA as of today.

    Meanwhile, I would recommend you to try using V1 logout endpoint and see if that help you with this scenario. Hope this helps.

    Well Known V1 endpoint:
    Logout V1 Endpoint:
    Sample Logout request:

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.