User Profile Sync not updating Manager field if vacant

Dominique Graves 256 Reputation points
2024-11-27T23:53:45.56+00:00

We are running SharePoint Server 2019. We synchronize with Active Directory for user profiles. We use the "Manager" field in AD. This allows us to assign workflow tasks to the "Manager" of employees. I have had several workflows error and after investigation I found that it happens when a manager has recently left. The manager's AD account is deleted. This nulls out the Manager attribute on their employees AD accounts. User Profile sync and my PowerShell script to remove accounts marked for deletion are successfully removing the manager's User Profile. HOWEVER, even though the AD account has an empty Manager attribute, the SharePoint user profile for the employees still has the managers account listed. So the workflows are erroring because it's trying to query a user profile that doesn't exist. See screenshot of the employee's user profile. The manager field has the managers name but with red squiggly underline stating "No exact match was found. Click the item(s) that did not resolve for more options".

Has anyone else had this issue where the AD account "manager" field is blanked out but the SharePoint profile retains the old manager?

user-profile-manager-error

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,422 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2024-11-28T02:22:11.19+00:00

    Hi @Dominique Graves

    Deleting the user account from Active Directory or User Profile from the UPSA in SharePoint will have no adverse impact on metadata.

    You could delete them from the User Information List which you can get to by navigating to https://siteUrl/_layouts/people.aspx?MembershipGroupId=0, finding their username, and removing it from the site collection. This will have no impact on metadata for items in the site but will remove them from the User Information List.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.