I figure the easiest way to do that would be to have the module assign roles and groups from the csv via group name or id and role name or (if present) role id. A secondary delimiter could be used to allow for multiple groups and roles. Is anyone else interested in this feature? Since I have need for this I will be examining the code to make a suggestion I guess, if that's the way things are done concerning feature requests.

Comments

robert castelo’s picture

Is there any reason why you can't just create a separate file for each role, then import them with the appropriate settings?

jjk005’s picture

That initially sounds like a feasible solution until one considers the possibility for users to be in multiple groups. At first glance you'd think that importing all users from group A and then from group B would be straightforward, but if there are users belonging to both groups then those adds will fail because they already exist, instead of being subscribed to the 2nd group. So now we are talking about having a list for every user who is in multiple groups, and this could get ugly etc etc. It seems to be a bit more intuitive to me to allow for groups and roles to be part of the csv. I'm not against importing users in group A from one csv and group B from another and having existing users from the 2nd import just get subscribed instead of re-added, but that seems to be an unnecessary function for a user import mod. Thoughts?

robert castelo’s picture

I've added some functionality to the 4.7 version (which I still need to commit) which has the option to add existing users to selected groups, and even send them a distinct message.

I'll move that to the 5 version in the next two weeks.

robert castelo’s picture

Status: Active » Closed (works as designed)

Does 5.x-2.0-beta1 support this?

I'm not 100% clear on what's being requested here. Feel free to re-open this if it doesn't.