How to expire all logged in sessions of a user on Password Reset?

AkshitAhuja-4588 10 Reputation points
2023-02-28T11:20:43.6766667+00:00

I want to destroy all existing logged in sessions if user Resets Password from one logged in device. How can I achieve this?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Vasil Michev 119.7K Reputation points MVP Volunteer Moderator
    2023-02-28T12:04:42.59+00:00

    What you can do is revoke all refresh tokens, which in turn will invalidate any active session once the access token expires (up to 1 hour delay). To do this via the UI, open the Azure AD blade > Users > select the user > hit the Revoke sessions button on top. To do it via PowerShell, use the Revoke-AzureADUserAllRefreshToken cmdlet (Azure AD module) or Revoke-MgUserSignInSession (Graph SDK for PowerShell).

    5 people found this answer helpful.

  2. Russell Fulton 1 Reputation point
    2024-11-04T20:55:54.3033333+00:00

    Things have now changed with Entra ID...

    Now you select Entra ID in the portal top menu => Users in the lefthand list and search for your user.

    Click on the user entry in the search results and then revoke session in the top menu.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.