Forum Discussion

Cloud7890's avatar
Cloud7890
Copper Contributor
Oct 22, 2026

CloudPasswordPolicyForPasswordSyncedUsersEnabled

If a synchronized user account (for example, email address removed for privacy reasons) is configured with "Password Never Expires" in on-premises Active Directory, and CloudPasswordPolicyForPasswordSyncedUsersEnabled is enabled, will Microsoft 365 continue to honor the on-premises setting, or will the user become subject to the Microsoft Entra password expiration policy?

 

Specifically, we are seeking confirmation on the following:

1. Does the on-premises Password Never Expires setting automatically carry over to Microsoft 365 after enabling CloudPasswordPolicyForPasswordSyncedUsersEnabled?

2. Or must DisablePasswordExpiration be explicitly configured in Microsoft 365 for such users to remain exempt from password expiration?

3 Replies

  • NathanReed's avatar
    NathanReed
    Iron Contributor

    For users authenticating through password hash synchronization (PHS), the on-premises Password Never Expires setting does not automatically carry over to Microsoft Entra ID.

    Enabling CloudPasswordPolicyForPasswordSyncedUsersEnabled allows the cloud password-expiration policy to apply to those users. If particular users must remain exempt, explicitly set DisablePasswordExpiration on their Entra user accounts.

    One timing detail matters: enabling the feature doesn’t immediately clear the existing DisablePasswordExpiration flag from every synchronized user. That change occurs during a subsequent password-hash synchronization, so an unchanged flag immediately after enabling the feature doesn’t prove the on-premises exemption was inherited.

    Microsoft documents this under Password hash synchronization — Password expiration policy.

    In your scenario, option 2 is the correct approach. Actual expiry also depends on the applicable cloud domain policy; a cloud policy configured never to expire passwords won’t introduce expiration.

  • For password-hash-synchronized users, do not rely on the on-premises “Password Never Expires” flag as a cloud exemption after enabling CloudPasswordPolicyForPasswordSyncedUsersEnabled. Microsoft documents the cloud exception separately through the user’s PasswordPolicies attribute.
    Enabling the feature does not immediately remove existing DisablePasswordExpiration values. Microsoft says removal occurs at the next password hash synchronization following that user’s on-premises password change; newly synchronized users do not receive the default exemption. Consequently, an account may initially appear exempt without its on-premises flag being the reason.
    Inspect the user’s cloud PasswordPolicies value and the expiration policy for its verified domain. If a cloud exemption is required, explicitly configure DisablePasswordExpiration for that account using Microsoft Graph, with approved permissions.
    Verify again after relevant synchronization events. Microsoft also documents that a full password hash synchronization associated with Entra Domain Services can clear these values, requiring exemptions to be reapplied. Test with a noncritical account before changing production-wide settings.

    • Cloud7890's avatar
      Cloud7890
      Copper Contributor

      Hi,

       

      Thank you for update.

       

      One more concern is regarding unlicensed synchronized users.

       

      If CloudPasswordPolicyForPasswordSyncedUsersEnabled is enabled:

       

      For an unlicensed user synchronized from on-prem AD, which password expiration policy takes precedence:

       

      On-prem Active Directory password policy, or

      Microsoft Entra ID / cloud password expiration policy?

       

      If the user has "Password Never Expires" enabled in on-prem Active Directory, will this setting continue to prevent password expiration in Microsoft Entra ID after enabling CloudPasswordPolicyForPasswordSyncedUsersEnabled?

       

      Is there any difference in behavior between licensed and unlicensed synchronized users regarding password expiration?

       

      Can Microsoft confirm the expected behavior and provide official documentation references for this scenario?

       

      Regards,

      Rajiv Kumar