JAEN

Microsoft 365

Revoke-MgUserSignInSession

CautionRevoke sign-ins

Revoke-MgUserSignInSession -UserId <upn>

Invalidates all sessions for a (possibly compromised) account, forcing re-auth.

Examples

Syntax

Revoke-MgUserSignInSession -UserId <upn>

Before you run it

The user must sign in again immediately.

Used when you see

New phone broke MFA sign-in
2
Clean up stale methods and guide re-registrationVerify identity rigorously — MFA-reset requests are a favorite attack.
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store