Hello Everyone… Its been a while since I wrote a blog. I wanted to share some good information on using stsadm -o migrateuser after an Account has been deleted within Active Directory and then re-created with the same Account Name.
Consider the following Scenario:
LoginName
tp_systemID
So the question is….. How do we get the new SID from AD into the UserInfo table. While this can be done with creating a temporary account in AD and doing some "stsadm -o migrateuser" flipping from Temp Account to Valid Account and vise versa, I have found that we can achieve this task by passing the same value for the "-oldlogin" & "-newlogin" and setting the "-ignoresidhistory" switch on our "stsadm -o migrateuser" command. So this is basically what you would do:
stsadm –o migrateuser –oldlogin DOMAIN\jdoe –newlogin DOMAIN\jdoe –ignoresidhistory
What this should do is flip the SID, or "tp_SystemId" in the UserInfo table to be the new account SID from AD and your user should now have access to all 300+ sites again.
Happy Migrating!!
Thanks for your work on this Anthony. I have a peer who has been battling this issue for sometime. Great to see the fix. The -ignoresidhistory should do the trick!
Great tip, Anthony! What if I need to apply this for 10,000 Active Directory users because they were migrated into a new domain? Is there a way to do this en-masse? Maybe a script? Thanks!
nice one