stsadm -o migrateuser -oldlogin "domain1\user" -newlogin "domain2\user" -ignoreidhistory
and getting the error "The user does not exist or is not unique".
The users exist in both domains in AD. The oldlogin has a user profile and also has membership to SharePoint Groups.
I've been on Google and I've read Todd Klindt's awesome post but still no dice! Any suggestions.
I basically have created a new domain (domain2), created a new user for an individual in that domain and want to run migrateuser on existing domain (domain1) account so the individual retains all the permissions etc.
I've tried using the API too with PowerShell and get the same error with this approach too!
[void][reflection.assembly]::Loadwithpartialname("Microsoft.SharePoint.Administration") | out-null $spFarm = [Microsoft.SharePoint.Administration.SPfarm]::Local; $spFarm.MigrateUserAccount($oldusername, $newusername, $true);