Posted by yurtboy on June 30, 2007 at 2:44pm
Jump to:
| Project: | CiviCRM Active User |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
User signs up as customer --> made a part of civicrm customer group
User signs up as a vender --> made a part of the civicrm vendor group
User signs up as a XYZ --> made a part of the civicrm xyz group
So instead of a one group option there is a more of if this "role" of a drupal user sign up then this civicrm group?
Thanks
Alfred Nutile
Comments
#1
I thought that the module did this already. If it does not, this sounds like a reasonable thing to expect, and would make the module still useful, even after double opt-in has been added to core CiviCRM, since this would be a way to get Drupal users added to different groups "behind the scenes".
If I decide to work on this, it will go into 6.x-1.x branch first, then be backported into 5.x-1.x.
#2
#3
To do this would require modifications to the settings screen.
Proposed UI: iterate over the user roles, starting with authenticated user, have a dropdown for each that lets you pick a CiviCRM group to which users in that role should be added. would be an option.
Problem: what to do with users who have multiple roles? Having a specific role take precedence over authenticated user would be easy, but in other cases, no clear way to tell. Could either have a role precedence setting, like FCKeditor module, or else just arbitrarily favor the higher-numbered user roles or something.
I don't plan on ever backporting this to 5.x, even if I do write the patch (which might actually be quite useful for some CiviCRM scenarios).
#4
To ensure that this didn't conflict with #279606: auto-rejoins an unsubscribed contact who unsubscribed via email the next time they sign in, we would probably want to have the module check for role addition any time a user logged in, not just the first time, since users could get assigned a role later.