Usage
m365 entra user session revoke [options]
Description
Revokes all sign-in sessions for a given user
Options
| Option |
Description |
-i, --userId [userId] |
The Microsoft Entra user ID. Specify userId or userName but not both. |
-n, --userName [userName] |
User principal name of the user. Specify userId or userName but not both. |
-f, --force |
Don't prompt for confirmation |
Examples
Revoke sign-in sessions of user with id 4fb72b9b-d0b0-4a35-8bc1-83f9a6488c48
m365 entra user session revoke --userId 4fb72b9b-d0b0-4a35-8bc1-83f9a6488c48
Revoke sign-in sessions of user by name
Revoke sign-in sessions of user by name without confirmation
Default properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=http
Usage
m365 entra user session revoke [options]
Description
Revokes all sign-in sessions for a given user
Options
-i, --userId [userId]userIdoruserNamebut not both.-n, --userName [userName]userIdoruserNamebut not both.-f, --forceExamples
Revoke sign-in sessions of user with id 4fb72b9b-d0b0-4a35-8bc1-83f9a6488c48
Revoke sign-in sessions of user by name
Revoke sign-in sessions of user by name without confirmation
Default properties
No response
Additional Info
https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=http