How to find the password expiration policy in Microsoft 365?
+
In Microsoft 365, the default password policy defines a secure password structure, including the password validity period (90 days), password expiration notification period (14 days), and the organization’s Microsoft 365 password policy settings.
However, admins can adjust these settings according to their organization’s needs. Therefore, it’s essential to know your organization's password expiration policy to ensure timely password updates and avoid disruptions to important systems.
- In the Microsoft 365 admin center, navigate to Settings»Org Settings.
- Click on Password expiration policy under the Security & privacy tab.
- Here, you view the password expiration policy of your organization.
Note: The Microsoft admin center only provides the password expiration policy. For additional details, such as password expiration notifications and users with passwords that never expire, use the PowerShell cmdlets.
Run the cmdlet below to examine your organization's password expiration policy and password expiry notification days.
Connect-MgGraph -Scopes "Domain.Read.All"
Get-MgDomain -DomainID <Domain name> | select -Property Id, PasswordNotificationWindowInDays, PasswordValidityPeriodInDays
Use the following cmdlet to identify users users whose passwords are set to never expire.
Get-MgUser -All -Property UserPrincipalName, PasswordPolicies | Select-Object UserprincipalName,@{N="PasswordNeverExpires" E={$_.PasswordPolicies -contains 'DisablePasswordExpiration'}}
Gain complete insights into your M365 password policies with AdminDroid report!
- To get the password policies for all your domains in a single detailed report, use AdminDroid's Password Policy report.
- This report shows details like password validity, how many users the policy applies to, how many bypass it, and the password expiration notification days for each domain.