Wednesday, July 1, 2015

How to Sync a user account name which was changed in AD to SharePoint



How to Sync a user account name which was changed in AD to SharePoint.

This is the scenario most of the administrators will face in their experience like the user will left the company and after some days he joins back. when we create a new user name for that person even though we see the old name in SharePoint after the many successful imports.

Solution: SharePoint doesn't understand this change automatically. We need to make it understand by giving instruction via STSADM command

When user's Account Name (or Login Name: Domain\User) renamed in Active Directory, you have to use stsadm -o migrateuser command to associate the new AD account with an existing SharePoint profile.

STSADM:
stsadm -o migrateuser -oldlogin EU\susanapi -newlogin EU\suzanapi –ignoresidhistory

Power shell :
Move-SPUser –Identity "DOMAIN\OldUserName" –NewAlias "Domain\NewUserName"

                                                                                       
 

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

ShareThis

X