Password Policy
The Domain Password Policy enforces password expiration and complexity requirements to enhance account security. It defines how long passwords remain valid, when users are notified of upcoming expiration, and helps protect against unauthorized access by requiring regular password changes and strong password practices.
Settings this baseline controls
| Setting | What it does |
|---|---|
| Expiry warning window | Specifies the number of days before a user receives notification that their password will expire. If the property is not set, a default value of 14 days will be used. Learn more |
| Password validity period | Specifies the length of time that a password is valid before it must be changed. If the property is not set, a default value of 90 days will be used. Learn more |
Configure it
Add this to the tenant, or through a scheme, wherever you want cloud passwords to expire on a schedule instead of following Microsoft’s default of never expiring.
-
Add the baseline to the tenant directly (Adding a baseline) or through a scheme (Deploying a scheme).
-
Set Validity period (the settings table calls it Password validity period) to 365 days, so users change their password once a year rather than never.
-
Keep Notification days (Expiry warning window in the table) at 14, the value the baseline checks on each domain. Microsoft no longer sends password-expiry notifications, so this value has no visible effect for users. When you open the baseline on a tenant rather than in a scheme, the editor also lists the Domains the policy covers: the tenant’s verified root domains.
-
Select Save. Automatic remediation only reapplies the same two values if someone changes them in Microsoft 365. To turn it on, switch on Auto on the baseline’s row; it acts only while the tenant’s Allow auto-remediation setting is on (Tenant settings).
Check it worked
Passing means Microsoft 365 admin centre → Settings → Org settings → Security & privacy → Password expiration policy shows Days before passwords expire set to 365, for the tenant’s verified root domains (the Domains list in the editor shows which). Cloud-only users are asked to change their password at the first sign-in after it expires.
Standards this addresses
Doing this for every tenant?
Step through the deploy wizard to apply a scheme to a tenant, groups or users, and see what Managed and Direct do at deploy time.