A cloud-based identity and access management service for securing user authentication and resource access
Hello @Jon Kilner
I understand that you are process of reviewing the steps needed to migrate our ADFS federated domain to Entra. One key difference is that password hashes for synced users don’t expire by default. However, enabling CloudPasswordPolicyForPasswordSyncedUsersEnabled makes the hash expire after 90 days once synced, aligning with our on-premises policy. Currently, our on-prem password expiration is 120 days, and you'd like to match that. But enabling this setting applies Entra’s default 90-day expiration policy.
If there are synchronized users that only interact with Microsoft Entra integrated services and must also comply with a password expiration policy, you can force them to comply with your Microsoft Entra password expiration policy by enabling the CloudPasswordPolicyForPasswordSyncedUsersEnabled feature (in the deprecated MSOnline PowerShell module it was called EnforceCloudPasswordPolicyForPasswordSyncedUsers.
EnforceCloudPasswordPolicyForPasswordSyncedUsers feature and update the Entra ID password policy to match On-premises Entra password expiry policy. For an example the default Entra ID password policy requires users to change their passwords every 90 days. If your policy in AD is also 90 days, the two policies should match. If the Entra policy is not 90 days, you can update the Entra password policy to match by using the Set-MsolPasswordPolicy PowerShell command. Set-MsolPasswordPolicy -DomainName -ValidityPeriod. Replace with your registered domain name in Azure Entra and with 120 to set the password validity period to 120 days.
In this instance, the password expiry for On-premises and Entra ID will be the same, therefore users will need to change their password when it expires. However, synchronized users won't be able change their password from Entra ID until you enabled Enable Azure Active Directory self-service password reset writeback to an on-premises environment otherwise user has to change their password from on-premises and wait for new Password Hash to get synchronized to Entra ID.
Note: Once EnforceCloudPasswordPolicyForPasswordSyncedUsers feature enabled, Azure AD does not go to each synchronized user to remove the Never Expire (DisablePasswordExpiration) value from the PasswordPolicies attribute. Instead, the Never Expire (DisablePasswordExpiration) value is removed from PasswordPolicies during the next password hash sync for each user, upon their next password change in on-premises AD.
For additional information refer this document: https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-password-hash-synchronization#cloudpasswordpolicyforpasswordsyncedusersenabled
Do Let us know if you have any Queries. We are happy to assist you further