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
| Location | Microsoft 365 admin center > Settings > Org settings > Security & privacy > Idle session timeout |
| Default | Off |
| Recommended | On, {{ idle_timeout_hours }} hours or less, triggered only on unmanaged devices |
Parameters
| Parameter | Baseline | Hardened | Bounds |
|---|---|---|---|
idle_timeout_hoursinteger, hours. Maximum inactivity in Microsoft 365 web apps before an unmanaged-device session is signed out. | 3 | 3 | 1 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
- Sign in to the Microsoft 365 admin center (https://admin.cloud.microsoft) as at least a Global Reader.
- Browse to Settings > Org settings > Security & privacy > Idle session timeout.
- Check that the setting is turned on and the period is {{ idle_timeout_hours }} hours or less.
- 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.
- Alternative in PowerShell (Microsoft Graph, scope
Policy.Read.All):Get-MgPolicyActivityBasedTimeoutPolicy | Select-Object DisplayName, IsOrganizationDefault, DefinitionshowsWebSessionIdleTimeoutforApplicationIddefault. - 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
- 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.
- Turn the setting on, choose {{ idle_timeout_hours }} hours (or a custom shorter value) and select Save.
- 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.
- 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
- Idle session timeout for Microsoft 365 Microsoft, vendor-doc, accessed 2026-10-24
- activityBasedTimeoutPolicy resource type Microsoft, vendor-doc, accessed 2026-10-24
- Conditional Access session controls Microsoft, vendor-doc, accessed 2026-10-24
Mappings
| Framework | ID | Relation |
|---|---|---|
| NIST SP 800-53 Rev. 55.1.1 | AC-12 | related |
| NIST SP 800-53 Rev. 55.1.1 | AC-11 | related |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1539 |
Related controls
- related
CB-M365-AUTH-025Require users to sign in again at least every {{ user_signin_frequency_days }} days - related
CB-M365-AUTH-027Hide the "Stay signed in" option at sign-in
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-24, 2026-10-24 |
| Translations | fr |