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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,849 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Vasil Michev 97,076 Reputation points MVP
    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.