I know this is an old thread, but I just wanted to let you know that this helped me out tremendously. I have a monstrous db of users that I wanted to migrate over to YAF and using your function as the basis, I was able to write something in c# to do the import! Thanks a whole lot! lovin YAF so far!