question

AmitDimri-1488 avatar image
0 Votes"
AmitDimri-1488 asked WendyLi-MSFT commented

Help needed in migrating user from SharePoint 2016 to another domain

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.

office-sharepoint-server-administrationoffice-sharepoint-server-customization
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sadomovalex avatar image
0 Votes"
sadomovalex answered AmitDimri-1488 commented

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
We followed the same approach and created a script created a script to change the users at the web application level and it removes all the existing permission.

0 Votes 0 ·
EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered WendyLi-MSFT commented

@AmitDimri-1488

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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AmitDimri-1488

I’m checking how the things are going on about this issue. Whether the answer helps you?

If there is any problem with this issue, feel free to let me know.

0 Votes 0 ·

@AmitDimri-1488 Have you tried Emily's answer? Does it work well for you?


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

0 Votes 0 ·