A cloud-based identity and access management service for securing user authentication and resource access
- No. The per-user
PasswordPolicies = DisablePasswordExpirationsetting is not overridden by changing the tenant/domain-wide password expiration policy (for example, to 365 days). The domain-level policy controls the maximum password age for accounts that are subject to expiration, butDisablePasswordExpirationexplicitly prevents that user’s password from expiring. The documentation states that:- Password expiry duration (maximum password age) is configured per domain via
Update-MgDomain -PasswordValidityPeriodInDays. - “Password expiry (Let passwords never expire)” is configured per user via
Update-MgUser -PasswordPolicies DisablePasswordExpiration.
DisablePasswordExpirationflag exempts that user from expiration. - Password expiry duration (maximum password age) is configured per domain via
- The order does not change the behavior. If
PasswordPolicies = DisablePasswordExpirationis set on a user first, and then the tenant/domain password expiration policy is changed (for example, from 90 to 365 days), the per-userDisablePasswordExpirationstill applies and the user’s password does not expire according to the domain maximum age. To make such a user subject to the tenant/domain expiration policy, theDisablePasswordExpirationvalue must be removed from the user (for example,Update-MgUser -PasswordPolicies Noneor equivalentSet-EntraUserusage).
References: