22 February, 2007

Migrating users in WSS 2.0

WSS 2.0 does not synchronise itself with Active Directory. This means that if a user account is renamed or has been moved to another domain, it can no longer log in to SharePoint. You can of course add the new account to SharePoint to grant access but then you end up with two accounts representing the same user which is not ideal for clarity in history, etc.

The correct solution is to update the username across all the content databases. With Service Pack 2 a new API was introduced and with that a new operation for stsadm.exe called 'migrateuser' which does exactly that.

For example, if a user account has been moved to a new domain, it can be migrated with the following command:

stsadm -o migrateuser -oldlogin domain1\joebloggs
-newlogin domain2\joebloggs

1 comment:

Manoj said...

Hi Kristian, it seems to be something which i was in search of. we have a similar requirement can you please help.
we have one domain (e.g. A.COM) with WSS 2.0 running in it. We wanted to migrate WSS 2.0 to a new domai (e.g. B.COM) along with all workspaces and the permissions on the workspaces should also be migrated.
Can you help how we can achieve the same.
Thanks
Manoj