Hi,

I am trying to import users to Drupal and assigning them a roll. But for the existing users, I would like them to conserve the old rolls that they've alreay got.

Under the configuration of "update existing users", no matter I choose "replace data" or "add data", the results are all the same: the existing users' old rolls will be replaced by the new one.

Is this a bug? I suppose that "add data" function should allow an existing user to have old and new rolls. Isn't it?

Can anyone help me? Thanks a lot.

CommentFileSizeAuthor
#4 persist_role.patch1.1 KBd.clarke

Comments

danny1997’s picture

Title: user import for existing users to have multiple rolls does not work » user import for existing users to have conserve old rolls does not work
danny1997’s picture

Title: user import for existing users to have conserve old rolls does not work » user import for existing users to conserve old rolls does not work
bander2’s picture

This is happening to me too, but I think I found a work around. If you set up your import like you want it and then go under the "Save Settings" section and give it a new name and click "save" then click "Import" that worked for me.

Basically you need to save the settings before you import. I am sure this is a bug, but that workaround worked for me. Be warned, through, that there is another bug (for me anyways) where users passwords were being reset. So make sure you test and make sure your password didn't get changed.

d.clarke’s picture

Title: user import for existing users to conserve old rolls does not work » User import for existing users to conserve old roles does not work
Status: Active » Needs review
StatusFileSize
new1.1 KB

Here is a patch I've created to fix this issue on my installs. Can someone review and verify the patch, please?

Thanks,
Dale

Ryan Palmer’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

Patch works as advertised. Thanks!

RTBC

Ryan Palmer’s picture

Version: 6.x-1.2 » 6.x-2.x-dev
csilver’s picture

I'm new to drupal, please excuse the simple question.

If I read this right, it is fixed in 6.x-2.x-dev, which is not yet available. I'm not sure if the patch includes the fix to the password being reset problem, so I'm not sure if I should apply it - and even if I wanted to I'm not sure how to apply a .patch file.

Any suggestions? I'd really like to get this fix into my system.

Thanks!!

Ryan Palmer’s picture

This is not yet fixed in dev. The patch applies cleanly to the dev version, which is why it is marked as particular to the dev version of this module. The "password being reset" issue is not something I am familiar with. Applying the patch simply makes the role additions work for us.

For applying patches: http://drupal.org/patch/apply

robert castelo’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in 6.x-2.1 and 5.x.2.9

Status: Fixed » Closed (fixed)
Issue tags: -user import, -roll

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