none
User profile sync not detecting new profile updates RRS feed

  • Question

  • I have done the profile update from mysite, but it is not getting detected while sync.
    I tried to do the manual update from CA also, but no effect.
    I ran the full synchronization, but still the problem persist.

    Checked in miisclient.exe, but there also the profile is not getting pulled to sync.
    Monday, July 22, 2019 9:35 AM

Answers

  • Ran the following PS and got to know one user's picture url was not accessable while sync and gave errors in event viewer also.

    This PS resolved that url also, and sync is working fine.

     # Get user profile service
    $UserProfileService = @(Get-SPServiceApplication | ? { $_.TypeName -eq "User Profile Service Application" })[0]
    
    if($UserProfileService)
    {
        $serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($UserProfileService.ServiceApplicationProxyGroup, 
    
    [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default);
        $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext)
    
        # Get all profiles
        $allProfiles = $profileManager.GetEnumerator(); 
    
        $counter = 0;
        $decCounter = 0;
    
        # Loop through every profile
        foreach($profile in $allProfiles)
        {
            $counter++;
            $decCounter++;
    
            $url = $Profile['PictureURL'] -as [string];
    
            if($url)
            {
                # Create HTTP Request
                $req = [system.Net.WebRequest]::Create($url)
                $req.UseDefaultCredentials = $true 
                try {
                    $res = $req.GetResponse()
                }
                catch [System.Net.WebException] {
                    $res = $_.Exception.Response
                }
    
                $int = [int]$res.StatusCode
                $status = $res.StatusCode
    
                # If the image cannot be accessed clear the field
                if($int -gt 400)
                {
                    Write-Host -NoNewLine $Profile['PreferredName'] "profile picture broken "
                    #$Profile['PictureURL'].Value = $null;
                    #$Profile.Commit();
                    #Write-Host -ForegroundColor Green "[FIXED]";
                }
            }
    
            if($deccounter -eq 10)
            {
                Write-Host $counter" user profile checked";
                $decCounter=0;
            }
        }
    }  
    

    Thursday, August 1, 2019 9:21 AM

All replies

  • Make Sure the Service Account which you are using must have Replicate Directory Changes Permissions from Active Directory Side check with AD Team & confirm. If Possible Send us the logs as well.

    Thanks & Regards,


    sharath aluri

    Monday, July 22, 2019 1:01 PM

  • Hi Shailesh_Kumar, 

    You said that "I have done the profile update from mysite, but it is not getting detected while sync."

    Which properties are changed from mysite?

    Where do you want to sync the changed the properties to?

    Best Regards, 

    Lisa Chen 



    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, July 23, 2019 7:35 AM
    Moderator
  • Hi Sarath,

    Thanks for the reply.

    The service account have the "Replicate directory changes" permission on AD.

    This was working previously. After the restart of the application server (on which UPS is running), it is not detecting the new changes in the profile.

    If the permission issue would be there, then while synchronization, it should give the error in miisclient.exe.

    Also, it should display in miisclient.exe that it has picked up the updated profile data from SharePoint, but it is not displaying.

    Kindly suggest, what need to be done in it.

    Tuesday, July 23, 2019 8:17 AM
  • Hi Lisa,

    Thanks for the reply.

    I am doing the sync between SharePoint and AD. Updated mysite data should be exported in AD.

    I am updating the profile data like address, department, title, phone no, etc, but nothing is getting detected while sync.

    Tuesday, July 23, 2019 8:32 AM
  • Hi Shailesh_Kumar, 

    My understanding is that you cannot export user property's value from user profile to AD. 

    You said "I am updating the profile data like address, department, title, phone no, etc, but nothing is getting detected while sync."

    Per my test, there is no profile data like address, department, title, phone no in mysite.

    Have you created custom user property and mapped to AD user property?

    Which AD user property do you mapped?

    And do you used export Direction mapping?

    Please offer a screenshot about where are you changed the user properties, and offer a screenshot about the user property mapping to further troubleshoot the issue.

    Best Regards, 

    Lisa Chen 


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, July 24, 2019 2:38 AM
    Moderator
  • Hi Lisa,

    Yes the export Direction mapping has been used to export SharePoint user profile to AD.

    I am using the default profile columns provided by SharePoint (Job title, work phone, department).

    Wednesday, July 24, 2019 8:09 AM
  • Hi Shailesh_Kumar, 

    Double check the mapping of the user property,  eg, for "work phone" user property, edit property, remove the import mapping, add a export mapping like the following, then start a full sync:

    Best Regards, 

    Lisa Chen 


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, July 24, 2019 9:03 AM
    Moderator
  • Hi Shailesh_Kumar, 

    Is there  anything update?

    Best Regards, 

    Lisa Chen 


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, July 26, 2019 2:16 AM
    Moderator
  • Ran the following PS and got to know one user's picture url was not accessable while sync and gave errors in event viewer also.

    This PS resolved that url also, and sync is working fine.

     # Get user profile service
    $UserProfileService = @(Get-SPServiceApplication | ? { $_.TypeName -eq "User Profile Service Application" })[0]
    
    if($UserProfileService)
    {
        $serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($UserProfileService.ServiceApplicationProxyGroup, 
    
    [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default);
        $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext)
    
        # Get all profiles
        $allProfiles = $profileManager.GetEnumerator(); 
    
        $counter = 0;
        $decCounter = 0;
    
        # Loop through every profile
        foreach($profile in $allProfiles)
        {
            $counter++;
            $decCounter++;
    
            $url = $Profile['PictureURL'] -as [string];
    
            if($url)
            {
                # Create HTTP Request
                $req = [system.Net.WebRequest]::Create($url)
                $req.UseDefaultCredentials = $true 
                try {
                    $res = $req.GetResponse()
                }
                catch [System.Net.WebException] {
                    $res = $_.Exception.Response
                }
    
                $int = [int]$res.StatusCode
                $status = $res.StatusCode
    
                # If the image cannot be accessed clear the field
                if($int -gt 400)
                {
                    Write-Host -NoNewLine $Profile['PreferredName'] "profile picture broken "
                    #$Profile['PictureURL'].Value = $null;
                    #$Profile.Commit();
                    #Write-Host -ForegroundColor Green "[FIXED]";
                }
            }
    
            if($deccounter -eq 10)
            {
                Write-Host $counter" user profile checked";
                $decCounter=0;
            }
        }
    }  
    

    Thursday, August 1, 2019 9:21 AM