Import users with specific ID Is it possible to use the saveUser method to import users with an existing ID?

craft()-&gt;users-&gt;saveUser($userModel)


I need to import 2000+ users and when doing so, I need to make sure that their old ID doesn't change after inserted, because I need to import other tables too and match them based on that.

The excellent import plugin tries to update the users instead of creating new ones when I tell it to import the ID as well. I'm not sure if that's intended behavior or a bug.
If the UserModel contains a user ID, then the existing user will be updated.

If the UserModel does not contain a user ID, then a new user will be created.

Either way, the UserModel will contain an ID after being saved. Since models in PHP are passed by reference, the ID will get set automatically for new users.