How to move / migrate SharePoint User permission to new domain account user
Move-SPUser
The Move-SPUser cmdlet migrates user access from one domain user account to another. If an entry for the new login name already exists, the entry is marked for deletion to make way for the migration.
Problem Statement :
Move-SPUser
The Move-SPUser cmdlet migrates user access from one domain user account to another. If an entry for the new login name already exists, the entry is marked for deletion to make way for the migration.
Problem Statement :
Today I just faced new challenge, In SharePoint 2013 I need to migrate domain user from his old account to a newly setup domain account. For this i use:
Move-SPUser -Identity "DOMAIN1\DEYBI002" -NewAlias "Domain2\DEYBI002" -IgnoreSID
I give permission on a site to Domain1\DEYB002 putting him in a group. I found After executing the command the user is remove from the group so he doesn't have anymore access but new user doesn't have access in his place! If i get the permission again to Domain2\DEYBI002 his name is now JaneSmith
Solution:
$user = Get-SPUser -Identity
"i:0#.w|domain1\deybi002" -Web http://team.stapleseur.com/sites/Advantage
Move-SPUser -Identity $user
-NewAlias "i:0#.w|domain2\deybi002" –IgnoreSid
Hope this helps you.
Thank you