Help needed in migrating user from SharePoint 2016 to another domain

Amit Dimri 51 Reputation points
2022-04-04T10:20:59.413+00:00

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,373 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,961 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. sadomovalex 3,631 Reputation points
    2022-04-04T14:55:48.183+00:00

    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 47,296 Reputation points Microsoft Vendor
    2022-04-05T10:36:54.417+00:00

    @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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.