Help needed in migrating user from SharePoint 2016 to another domain

Amit Dimri 31 Reputation points

HI Team,
We are in the need to migrating SharePoint 2016 from one domain to another domain. We have created a new environment (in the new domain) and attached the databases. Now , we would need to migrate the user and we are confused whether we would need to user move-spuser or SPFarm.MigrateUserAccount Method as we are targeting to move the user at the farm level.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,059 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,700 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. sadomovalex 3,621 Reputation points

    Move-SPUser looks as correct approach for your scenario. E.g. in the following post it is used in similar scenario as yours: Migrate SharePoint Users from One Domain To Another using Move-SPUser. Try that with some single user account (or few accounts) and see will it work as you expect.

  2. Emily Du-MSFT 36,276 Reputation points Microsoft Vendor

    @Amit Dimri

    Move-SPUser will translate all identities for a user across the entire farm and would be the appropriate method to use. I suggest you run following PowerShell as the Farm Administrator or a user with Full Control over the User Profile Service Application.

    $user = Get-SPUser -Identity "DomainA\user1" -Web http://sitecollectionUrl  
    Move-SPUser -Identity $user -NewAlias "DomainB\user1" -IgnoreSid  

    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.