Correct or remove the duplicate values in your local directory


Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName username@Domain.com;]. Correct or remove the duplicate values in your local directory. Please refer to http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute values.

First run the LDP tool

https://support.microsoft.com/en-us/kb/2641663

then

  • Connect to Office 365 by using the Azure Active Directory Module for Windows PowerShell. To do this, follow these steps:

  • Click Start, click All Programs, click Windows Azure Active Directory, and then click Windows Azure Active Directory Module for Windows PowerShell.

  • Type the following commands in the order in which they are presented, and press Enter after each command:

    $cred = get-credential

    Note When you are prompted, enter your Office 365 administrator credentials.

    Connect-MSOLService –credential $cred

    Leave the console window open. You will have to use it in the next step.

  • Check for the duplicate userPrincipalName attributes in Office 365. In the console connection that you opened in step 2, type the following commands in the order in which they are presented, and press Enter after each command:

    $userUPN = “<search UPN>”

    Note In this command, the placeholder“<search UPN>” represents the UserPrincipalName attribute that you recorded in step 1f.

    get-MSOLUser –UserPrincipalName $userUPN | where {$_.LastDirSyncTime -eq $null}

    Leave the console window open. You will use it again in the next step.

  • Check for duplicate proxyAddresses attributes. In the console connection that you opened in step 2, type the following commands in the order in which they are presented, and press Enter after each command:

     

     

    $SessionExO = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic –AllowRedirection

     

     

    For each proxy address entry that you recorded in step 1f, type the following commands in the order in which they are presented, and press Enter after each command:

    $proxyAddress = “<search proxyAddress>”

    Ref:https://support.microsoft.com/en-us/kb/2641663

Advertisements