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 https://crescent-admin.sharepoint.com -credential (Get-Credential)

#Logoff User
Revoke-SPOUserSession -User Salaudeen@crescent.com -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
How to Log Out User Sessions in SharePoint Online? How to Log Out User Sessions in SharePoint Online? Reviewed by Salaudeen Rajack on July 07, 2018 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.