The scenario:
My system contains existing users with various roles. I am importing a list of users (8,000) with a role of 'Donor' which needs to update the existing users with this donor role.
Settings applied for user processor are:
Update existing users: Checked <<< this is the difference
Skip hash check: Unchecked
Status: Active
Additional Roles:
Checked Donor (a custom role for us)
Field mapping
Used Email Address as unique
-----------------------------
The problem:
The import is not setting the additional role upon updating existing users. It just leaves the existing roles in place and does nothing to set the 'Donor' role.
-----------------------------
This ticket is similar to but not the same as https://www.drupal.org/node/1894542. His ticket is an issue for replacing, while mine is an issue for updating.
-----------------------------
I have tried using the module https://www.drupal.org/project/feeds_ridmap but it just does a replace and my existing users lose their pre-existing roles. So feeds_ridmap is kind of like just checking the option for "replace existing".
-----------------------------
I don't have enough time to debug this, but if someone already knows and can tell me where the source of the problem is with regards to updating roles in the feeds import, then I am happy to try to fix this when I find some spare time.
Best, Howard
Comments
Comment #2
megachrizChanged issue title to make the difference with #1894542: User import does not replace roles with "Additional roles" when replacing existing users more clear.
Also added a related issue: #1376774: User Processor - add mapping target for user roles
Comment #3
megachrizComment #4
megachrizThis issue is fixed as part of #1376774: User Processor - add mapping target for user roles. Especially see the interdiff of #58 for the fix.