Azure AD Connect Not Syncing Password

rr-4098 2,051 Reputation points
2023-08-03T03:32:17.83+00:00

I have setup Azure AD connect to sync onprem AD accounts and pwds to Azure using Password Hash. The first couple of users I moved to a OU to sync are members of the Domain Admin group. I have enabled inheritance and see their accounts picked up by Azure AD Connect (I know this will revert back by design and its not a permeant fix). The problem is I see their account now listed as synced from onprem in Azure and it shows a last sync time as current, but when I had them change their onprem pwd it did not reflect the new password timestamp in the Azure portal nor did Outlook prompt them for their new password.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Sandeep G-MSFT 20,906 Reputation points Microsoft Employee Moderator
    2023-08-03T11:45:46.29+00:00

    @rr-4098

    You can try running the below script in your AD connect server and then check if the passwords get's synced.

    $adConnector  = "on-premises AD connector" 

    $aadConnector = "Azure AD connector - AAD" 

    Import-Module adsync 

    $c = Get-ADSyncConnector -Name $adConnector 

    $p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter "Microsoft.Synchronize.ForceFullPasswordSync", String, ConnectorGlobal, $null, $null, $null 

    $p.Value = 1 

    $c.GlobalParameters.Remove($p.Name) 

    $c.GlobalParameters.Add($p) 

    $c = Add-ADSyncConnector -Connector $c 

    Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $false 

    Set-ADSyncAADPasswordSyncConfiguration -SourceConnector $adConnector -TargetConnector $aadConnector -Enable $true

     

    NOTE: Change the "on-premises AD connector" and "Azure AD connector - AAD" values according to your AD connect connectors

    Let me know if you have any further questions on this.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.