Download & Extend

User import for existing users to conserve old roles does not work

Project:User Import
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)
Issue tags:roll, user import

Issue Summary

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.

Comments

#1

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

#2

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

#3

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.

#4

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

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

Thanks,
Dale

AttachmentSize
persist_role.patch 1.1 KB

#5

Priority:normal» critical
Status:needs review» reviewed & tested by the community

Patch works as advertised. Thanks!

RTBC

#6

Version:6.x-1.2» 6.x-2.x-dev

#7

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!!

#8

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

#9

Status:reviewed & tested by the community» fixed

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

#10

Status:fixed» closed (fixed)

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