Share via


Old name still showing in context menu after user name changed in active directory

Question

Thursday, February 14, 2013 10:04 PM

Hi

I had a user change their name but SharePoint is still displaying the old name in the context menu in their mysites site. The odd thing is that when the user goes to the root of the mySites web site, the correct name is displayed in the context menu in the upper right corner. However when they click on 'My Content', the old name is displayed.

I changed the name in Active Directory.

When the user goes to edit their profile only the new name is displayed.

I then tried the following two commands

Set-SPUser -Identity 'domain\user' -DisplayName 'new name' -web http://mysitesurl

and

Set-SPUser -Identity 'domain\user' -web http://mysitesurl -SyncFromAD

Both commands ran without error but neither fixed the problem.

Any suggestions?

Thanks

Charlotte

All replies (3)

Friday, February 15, 2013 2:55 PM âś…Answered | 2 votes

The timer job responsible for synchronizing data between User Profile DB and Content DB is called "User Profile Service - User Profile to SharePoint Full Synchronization". Ensure this job is running correctly.

People very often get confused on My Site Host and Personal Site.

  1. the correct name in the root of my site web site came from "MY SITE HOST" collection.
  2. the incorrect / old name in the "My Content" web site, came from "Personal Site" collection.

It seems the time job did not process the user's Personal Site collection, hence it's still displaying the old name.

My recommendations are:

  1. Manually start the timer job "User Profile Service - User Profile to SharePoint Full Synchronization" from the Central Admin site and see if it sync the name on the user's personal site.
  2. run the command you did for My Site Host, but the URL should be the user's personal site. something like:
    Set-SPUser -Identity 'domain\username' -DisplayName 'new name' -web http://MySiteHost/Personal/username

Allen Wang | http://blogs.msdn.com/allenwang


Friday, February 15, 2013 11:21 AM

Not the "right" way probably, but I delete the account and put it back in.  However, just removing permissions doesn't do it, you seem to have to DELETE the account from sharepoint.

I use a free tool from sharepoint boost.  I won't install thier stuff on my servers anymore (several issues), but this is an .exe you can run locally.

http://www.sharepointboost.com/end-user-viewer-tool.html

Willner001


Friday, February 15, 2013 3:22 PM

Hi

Running the timer job did not change anything. However your second suggestion was right on the money and that did the trick.

Thank you

Charlotte