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

hkovacs created an issue. See original summary.

megachriz’s picture

Title: User Import does not set desired role » User import does not add roles with "Additional roles" when updating existing users
Related issues: +#1376774: User Processor - add mapping target for user roles
megachriz’s picture

Title: User import does not add roles with "Additional roles" when updating existing users » User import does not add roles from "Additional roles" when updating existing users
megachriz’s picture

Status: Active » Fixed

This issue is fixed as part of #1376774: User Processor - add mapping target for user roles. Especially see the interdiff of #58 for the fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.