Assign Role Based On CCK Field Selection

unrealnighthawk - September 13, 2008 - 21:31
Project:Auto Assign Role
Version:5.x-1.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

It would be incredibly handy if there was an interface to allow this module to assign role based on the selection made from a CCK field.

Here's the situation:
I'm using the bio module to make custom profiles. They fill in the information when they register. There is a radio field where they can select what status they are (active, alumni, etc). Based on the status they select there, it should assign a specific role.

I would use the built in ability to set role at registration, but I want to give the user the ability to change their own role. I realize that I can do that with the "role control" module, but I also want it to show up in views, which currently doesn't have a way to filter by role. The only other way that I can think to do this is by using OG to assign roles, then filter the view by OG group... but I'd rather not use OG.

Any ideas?

#1

asugene - November 24, 2008 - 17:50

#2

solidbluechameleon - December 16, 2008 - 14:01

I agree very much with the idea. We are working on an extended version of Auto Assign Role which is supposed to do exactly what you suggest. I'll keep this thread up-to-date. Using workflow for this is a bit 'heavy' IMHO.

#3

unrealnighthawk - December 17, 2008 - 01:51

Thank you! I look forward to seeing what you end up with.

#4

scott859 - December 17, 2008 - 06:15

subscribing...

#5

hugafish - March 14, 2009 - 05:58

Great Idea, I have a music site with an ever growing number of custom user field possibilities and different user types. This is a good way to keep a person from just assigning a non appropriate role for themselves as well as an auto assign to just arbitrarily assign one based on general type selected. It filters the selection to be a more accurate role assignment. The complexity would be to have a multitude of fields that pertain to a particular type of account that has to have and condition for all selected fields in order to obtain that particular account type. The problem in reality would be that certain kind of selections may pertain to more than one type of account from a users perspective and therefore make it confusing for the sign up process. I guess in my case I would probably have one key determination field and then just make the others mandatory but non crucial fields for determining the account type.

Eric

#6

cyberswat - August 18, 2009 - 23:38
Status:active» won't fix

I suggest using content_profile which supports AAR integration in the d6 version

#7

freatida - December 7, 2009 - 12:45

I'm trying to do this with d6.
@cyberswat, just wondering how using content_profile helps assign a role conditionally, based on information entered in the profile fields?
thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.