We wrote a script to help migrate local user accounts — both the accounts and the home directories, which change ownership based on the new UID assigned from the directory — for my university.
Contact me at jjracc@rit.edu and I can supply it to you, with no warranty.