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

danny1997 - May 25, 2009 - 22:11
Project:User Import
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Issue tags:roll, user import
Description

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.

#1

danny1997 - May 25, 2009 - 22:14
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

danny1997 - May 25, 2009 - 22:15
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

bander2 - June 17, 2009 - 00:59

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

beday00 - August 5, 2009 - 02:22
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

Ryan Palmer - August 26, 2009 - 20:00
Priority:normal» critical
Status:needs review» reviewed & tested by the community

Patch works as advertised. Thanks!

RTBC

#6

Ryan Palmer - August 26, 2009 - 20:00
Version:6.x-1.2» 6.x-2.x-dev

#7

csilver - September 3, 2009 - 03:01

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

Ryan Palmer - September 4, 2009 - 12:36

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

Robert Castelo - September 20, 2009 - 02:04
Status:reviewed & tested by the community» fixed

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

#10

System Message - October 4, 2009 - 02:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.