Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Microsoft Entra ID must enforce a 180-day maximum password lifetime restriction

DISA.V-270239LowMicrosoft 365Organization settingsPreview 3.0Runs with -IncludePreview

Part of DISA · Microsoft 365 · Organization settings · All checks

Run this check
Invoke-Maester -TestId DISA.V-270239 -IncludePreview

Passwords expire after 180 days or less on every verified, managed domain (DISA Microsoft Entra ID STIG, V-270239, CAT II).

DISA requires a maximum password lifetime, so a password that leaked without anyone noticing stops working after a known time. In Microsoft 365 the password expiration policy is set per domain, and it applies to the verified domains that are managed by Microsoft Entra ID (federated domains follow the identity provider’s policy).

The check fails when a verified, managed domain never expires passwords or sets a lifetime longer than 180 days (MaximumPasswordAgeDays). A domain that stores no period is reported for review, because the API does not say whether the default of 90 days the STIG mentions applies or, as in newer tenants, passwords never expire.

This conflicts with CIS. CIS.M365.1.3.1 reads the same setting and asks that passwords never expire, as NIST SP 800-63B recommends. A tenant can pass only one of the two tests; run the one your organization is assessed against.

  1. In the Microsoft 365 admin center, go to Settings > Org settings > Security & privacy > Password expiration policy.
  2. Clear Set passwords to never expire (recommended).
  3. Set Days before passwords expire to 180 or less, and select Save.

The admin center sets the period on every domain. To set one domain, use Update-MgDomain -DomainId <domain> -PasswordValidityPeriodInDays 180.

Every attribute of this check
FieldValue
Test IDDISA.V-270239
SeverityLow
SuiteDISA
ProductMicrosoft 365
Related productsEntra ID
FeatureOrganization settings
AreaAuthentication
Resource typeDomain
User impactMedium
Implementation costLow
MITRE ATT&CKT1078.004 Cloud Accounts
Supports benchmarkDISA Microsoft Entra ID STIG (version V1R2), requirement V-270239
Supports controlsdisa-stig-entra-id:V-270239, nist-800-53-r5:IA-5(1)
PowerShell testTest-MtDisaPasswordLifetime
ServicesGraph
LifecyclePreview