Microsoft 365 tenant · Identity & authentication

Sign out idle Microsoft 365 web sessions on unmanaged devices after {{ idle_timeout_hours }} hours

When it fails: Idle Microsoft 365 web sessions stay open indefinitely on unmanaged devices. A browser left signed in on a shared or personal computer gives the next person access to the user's mail and files.

CB-M365-AUTH-026lowactivemanualprofile hardened

Description

Idle session timeout is turned on in the Microsoft 365 admin center with a value of {{ idle_timeout_hours }} hours or less. Users inactive for that long in the supported Microsoft 365 web apps (Outlook on the web, OneDrive, SharePoint, Office for the web, Microsoft365.com, the Microsoft 365, Defender and Purview portals) are warned, then signed out.

A Conditional Access policy limits the timeout to unmanaged devices: it targets Office 365 for all users, with the Client apps condition set to Browser and the session control Use app enforced restrictions. Compliant and joined devices are not signed out.

The timeout does not sign out users who chose Stay signed in at sign-in; hide that option (CB-M365-AUTH-027). The Microsoft 365 setting overrides the older Outlook on the web and SharePoint idle policies. Under the hood it is stored as the organization default activityBasedTimeoutPolicy in Microsoft Graph.

A 15-minute timeout (session lock on the workstation) is a device setting, not a tenant one; it is out of scope here.

Rationale

The timeout is aimed at devices the organization does not control: kiosks, home computers, devices of partners. On those devices nobody locks the screen for the user, and a forgotten tab keeps a valid session for days. Signing out idle sessions limits that exposure without bothering users on managed workstations, which have their own screen lock.

Impact

Users on unmanaged devices are signed out of all Microsoft 365 web apps in that browser after {{ idle_timeout_hours }} hours of inactivity, and lose unsaved work in forms. Desktop and mobile apps are not affected. The setting is tenant-wide and cannot be scoped to groups. It does not work when third-party cookies are blocked in the browser.

Applies when

Requires: Microsoft Entra ID P1

Setting

LocationMicrosoft 365 admin center > Settings > Org settings > Security & privacy > Idle session timeout
DefaultOff
RecommendedOn, {{ idle_timeout_hours }} hours or less, triggered only on unmanaged devices

Parameters

ParameterBaselineHardenedBounds
idle_timeout_hoursinteger, hours. Maximum inactivity in Microsoft 365 web apps before an unmanaged-device session is signed out.331 to 24

The value used is your override (tailoring file), else the profile's, else the one of the profile it extends, else the default. Bounds limit what an override may set.

Audit

  1. Sign in to the Microsoft 365 admin center (https://admin.cloud.microsoft) as at least a Global Reader.
  2. Browse to Settings > Org settings > Security & privacy > Idle session timeout.
  3. Check that the setting is turned on and the period is {{ idle_timeout_hours }} hours or less.
  4. In the Microsoft Entra admin center (https://entra.microsoft.com), as at least a Security Reader, browse to Entra ID > Conditional Access > Policies and find a policy with State On that targets All users, the Office 365 resource, the Client apps condition Browser, and the session control Use app enforced restrictions.
  5. Alternative in PowerShell (Microsoft Graph, scope Policy.Read.All): Get-MgPolicyActivityBasedTimeoutPolicy | Select-Object DisplayName, IsOrganizationDefault, Definition shows WebSessionIdleTimeout for ApplicationId default.
  6. Fail if the timeout is off, longer than {{ idle_timeout_hours }} hours, or if the Conditional Access policy is missing (the timeout then applies to every device, which is accepted but not the target state).

Remediation

  1. In the Microsoft 365 admin center, browse to Settings > Org settings > Security & privacy > Idle session timeout. The first activation needs a Global Administrator; later changes can be made by a Security Administrator or a Cloud Application Administrator.
  2. Turn the setting on, choose {{ idle_timeout_hours }} hours (or a custom shorter value) and select Save.
  3. In the Microsoft Entra admin center, as a Conditional Access Administrator, create a policy: Users > All users (exclude the emergency access accounts); Target resources > Select resources > Office 365; Conditions > Client apps > Browser; Session > Use app enforced restrictions.
  4. Start in Report-only, then switch to On.

Rollback

Clear Turn on to set the period of inactivity in the Idle session timeout pane and save.

References

Mappings

FrameworkIDRelation
NIST SP 800-53 Rev. 55.1.1AC-12related
NIST SP 800-53 Rev. 55.1.1AC-11related

How this control relates to the other framework's: equivalent, stricter, looser, partial or related.

Threats mitigated

  • related CB-M365-AUTH-025 Require users to sign in again at least every {{ user_signin_frequency_days }} days
  • related CB-M365-AUTH-027 Hide the "Stay signed in" option at sign-in

People and lifecycle

Authors
Introduced inv0.1.0
Created, updated2026-10-24, 2026-10-24
Translationsfr