At my current Sharepoint 2003 to 2007 migration project, we have to migrate Sharepoint 2003 users to a different domain server. On my world wide web search I bumped into an utility called “SPUserUtil” that was part of the “SharePoint Utility Suite”, but unfortunately the author decided to take the project offline and it is no longer available.
This blog post from Alexander Windel provided enough information about the process of migrating Sharepoint users. For WSS sites you can use the “stsadm -o migrateuser” command, but this is not enough for a Sharepoint 2003 Portal Server. The problem is that you’ll also need to use code to call the function PortalAccountMigrationManager.MigrateAccount() in the object model.
Last evening I created a small Sharepoint user migration utility, to make our life a bit easier. It will run both commands for you and it will allow you to migrate a larger batch of Sharepoint users at once.
Step 1)
Scan for users in your site collection to create the basic user xml file:
MigrateSPUsers.exe -detectusers http://mysitecollection -userfile users.xml
Step 2)
Edit the user xml file. Remove users that should not be migrated or add missing users. Change the “NewLogin” nodes to include the new account information.
Step 3)
Start the Sharepoint user migration by providing the tool the following parameters
MigrateSPUsers.exe -migrateusers -userfile users.xml
or for a Sharepoint Portal Server use
MigrateSPUsers.exe -migrateusers -userfile users.xml -portal -ignoresidhistory
Step 4)
Done! Check your Sharepoint site to see if all your users are correctly migrated.
Please note that you have to run this application at the Sharepoint server with enough user rights. The server should also contain the .Net2 runtimes. This utility is for use with Sharepoint 2003 only and it is for use on your own risk.
September 9, 2008 at 4:07 pm
Any plans on adapting this tool for 2007?
Thanks!
Ben
October 12, 2008 at 9:30 am
Hi Ben! When I have some spare time I will try to create a moss2007 version.
March 23, 2009 at 4:35 pm
Can you please share the source code?
May 6, 2010 at 4:48 pm
What if the AD server has been replaced, not renamed? I need to remap the SIDs, but not change any logins.
Would that be possible using this program?
May 7, 2010 at 12:12 am
And, is it possible to migrate groups?
Thanks for a great utility!
March 16, 2011 at 4:38 pm
Excellent utility. Thank you!
August 26, 2011 at 3:45 pm
Hello and thanks for the utility. Quick question this migrates permissons like STSADM but not the users configuration like if they have added links etc. How can that be migrated?