Migrate module. Users from D6 to D7 with preserved UIDs I'm trying to migrate a Drupal 6 site to a totally new implementation of Drupal 7.

I'm using the migrate module, and I am able to successfully migrate users and passwords, as well as their roles, but the users UIDs is not being maintained.

I believe that the issue is that UIDs must be explicitly set on the user object before saving it, and migrate is not doing that for me.

http://drupal.org/node/712966

Any tips on how I can do that? I need my UIDs on Drupal 7 to be exactly the same as Drupal 6!
For migrating to Drupal 7, it's much simpler:

// Pass the old uid through
$this-&gt;addFieldMapping('uid', 'uid');
// Tell user_save to create a new account with the given uid (otherwise it sees the
// uid and assumes you're updating an account).
$this-&gt;addFieldMapping('is_new')
     -&gt;defaultvalue(1);