Migrate : user update resets user roles Using the Migrate module, I created an import task that creates and updates user info from a csv file. The update is launched using drush.

drush -l http://localhost.atrium.com mi Utilisateur --update


All the users are updated appropriately but the user roles, which are not in the migration mapping, are reset for every user that's updated.

How can I avoid that and keep the user roles for every account that's updated ?

Thanks !
You can add fields to be explicitly ignored by adding addUnmigratedDestinations to your class:

$this-&gt;addUnmigratedDestinations(array(
  'roles',
  'role_names',
));