How to Log Out User Sessions in SharePoint Online?

Requirement: Force Log Off all sessions of a user, as he lost his mobile device which is logged-in with SharePoint Online sites.

PowerShell to Log Out User from All Sessions in SharePoint Online
We can force logoff a user from all his sessions opened with SharePoint Online using Revoke-SPUserSession cmdlet. Here is how:
#Connect to SharePoint Online
Connect-SPOService -URL -credential (Get-Credential)

#Logoff User
Revoke-SPOUserSession -User [email protected] -Confirm:$false 

This prompts for credentials to connect to SharePoint Online admin center and disconnects all sessions of a given user and takes them to login page.
sharepoint online sign out

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.