SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an issue with User Profile Sync in SharePoint 2010 when the following happens:

  • A new user is added to AD (i.e. DOMAIN\jdoh)
  • The user is synched successfully to SharePoint
  • Time passes
  • The user's account name is changed in AD (i.e. because it was originally misspelled: DOMAIN\jdoe)
  • The user is re-synced to SharePoint

The behavior appears to be that the account name is not changed. In the above example, accountname will continue to be DOMAIN\jdoh in SharePoint, though other properties are synced correctly- I would assume by SID. This means that the users' my profile and mysite links still refer to the 'old' name (ie Person.aspx?accountname=Domain\jdoh). What steps should be taken to fix this in SharePoint when an account name is changed in AD?

share|improve this question

migrated from Jan 10 '12 at 5:39

This question came from our site for system and network administrators.

Maybe it's a problem with LsaLookupSids cache? ( – Mikhail Kislitsyn Oct 4 '13 at 9:31
Sorry to bring up old issue. May I know which approach you had taken to solve it? – Mark Mar 4 at 7:24

You need to execute the following Move-SPUser command (an equivalent of the STSADM MigrateUser command) for the user account in order to update the account name in SharePoint:

Move-SPUser -Identity "DOMAIN\jdoh" -NewAlias "DOMAIN\jdoe"
share|improve this answer

Have you tried forcing a sync with the following command?

Get-SPUser –Web http://SHAREPOINT-SERVER-NAME | Set-SPUser –SyncFromAD

share|improve this answer Actually I navigated to http:///_catalogs/users/detail.aspx and deleted user account. Then run "User Profile Service Application - User Profile to SharePoint Full Synchronization" job

share|improve this answer

The only solution we have found (that doesn't require writing code) is to delete the user from SharePoint and re-add them again.

Just make sure you know which groups their user resided.

share|improve this answer

What I did to force SharePoint to use the changed Account Name:

  1. In Central Administration go to the User Profile Service
  2. Go to Manage User Profiles and search for the useraccount.
  3. Delete the useraccount
  4. Start Profile Synchronization > Incremental Synchronization
  5. Ask the user to login (to re-create his profile).

Deleting the User Profile also deletes information like his account picture, ..., etc. So it might not be the solution you like.

share|improve this answer

you can delete the user from the site collection. If your isn't spelled correctly you will need to contact security to correct the spelling in Active Directory. Contact Exchange or other email administrator. You can then delete the user account and add the user. You would need to also add the user to the correct groups. After completing those steps, the user should receive an welcome email for the Groups they've been added to. I hope his helps.

share|improve this answer

Deleting the user from the site collection and adding them worked for me. For some reason trying to update via PowerShell kept throwing an invalid user identity error or Access Denied, depending on which site collection the user was in.

share|improve this answer
Set-SPUser –Identity "domain\username" –SyncFromAD –Web

It worked for me and it will update user information from AD to sharepoint site. some of time if user has given through NT AUTHORITY\Authenticated Users . then how you will remove EU inside NT AUTHORITY\Authenticated Users . so the best solution is, run the above command and fix your issue.

share|improve this answer


Set-SPUser –Identity "domain\username" –SyncFromAD –Web https://mysitecollection
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.