Hello mohamed irfan
Thank you for reaching out to Microsoft Q&A.
You’re facing a Self-Service Password Reset (SSPR) failure with a “null error” after password expiry, even though Azure AD Connect password hash sync and writeback health checks are fine.
Below are the Root Causes: -
1.) Password Writeback Connectivity Issues
Firewall or proxy blocking outbound HTTPS to *.passwordreset.microsoftonline.com or *.servicebus.windows.net.
TLS 1.2 or .NET Framework not enabled.
Service Bus token errors indicate connectivity problems.
2.) Permissions on AD DS Connector Account
The MSOL_ account used by Azure AD Connect must have Reset Password rights on user objects.
If permissions are missing, writeback fails silently or throws generic errors.
3.) On-Premises Password Policy Conflicts
Minimum password age > 0 or complex policy violations can block resets.
Temporarily relax policy for troubleshooting.
4.) Protected Accounts (AdminSDHolder)
If the user was ever in privileged groups (Domain Admins, etc.), adminCount=1 and inheritance block can prevent writeback
Steps to resolve: -
1.) Verify Connectivity: -
Run PowerShell on the Azure AD Connect server:-
Test``-NetConnection -ComputerName <namespace>.servicebus.windows.net -Port 443
Ensure outbound HTTPS to required endpoints is allowed.
For your reference: - https://learn.microsoft.com/en-us/entra/identity/authentication/troubleshoot-sspr-writeback
2.)Verify Password Writeback Configuration
- In Microsoft Entra Connect, ensure Password Writeback is enabled.
- Check the connector account permissions
Set-ADSyncPasswordWritebackPermissions -ADConnectorAccountName "MSOL_<account>"
For your reference: https://learn.microsoft.com/en-us/entra/identity/authentication/tutorial-enable-sspr-writeback
3.) Validate Password Policies
- Ensure Minimum password age is set to
0in AD. - Check complexity rules and temporarily relax if needed.
For your reference: https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/user-prov-sync/password-writeback-general-troubleshooting-steps
4.) Restart Services and Re-enable Writeback
Restart ADSync service
Restart-Service ADSync
Disable and re-enable Password Writeback in Entra Connect.
Please let us know if you need any further assistance.