How to Configure Idle Session Timeout for SharePoint Online!

If you are reading this blog then you may have seen my previous one in regards to how idle session timeout works and what it is. If not and you would like to learn about it, please click here.

To get started firstly you need to ensure SharePoint Online Management Shell is installed and connected to SharePoint online. To connect to SharePoint Online with a username/password run the following commands in SharePoint Online PowerShell:

Connect-SPOService -Url https://<tennant>-admin.sharepoint.com

To configure the idle session timeout you will need to run the following:

Set-SPOBrowserIdleSignOut -Enabled $True -WarnAfter (New-TimeSpan -Seconds <number of seconds>) -SignOutAfter (NewTimeSpan -Seconds <number of seconds>)

To view these settings simply enter the command:

Get-SPOBrowserIdleSignOut

 

About the author