Question

I'm running:

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);
Was it helpful?

Solution

It turned out that the new domain did not have a trust with the domain that the SharePoint Farm was a member of and so the migrateuser command was failing to resolve the new user.

Would have been nice for the migrateuser command to give some more defensive helpful error messages! Clearly too much to ask for...maybe in SP2010 ;-)

OTHER TIPS

i've had similar problems before and it's been because the details of the account, in the two ADs, has differed slightly.

make sure the details of the two user accounts are identical (eg. all information, such as title, manager, phone etc).

If i remember correctly, then there's a script in the source code (a .bat file i believe) of this CodeProject entry:

the code is not all relevant to you, but the .bat file might help.

If not, then let me know and we'll keep working on it :)

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top