what's the best module for auto assign role in registration?

michaelbr - February 17, 2009 - 01:23

I'd like to auto assign user role during the registration process, my site has basically 2 roles, teachers and student, if the teacher check the teacher box, they'll be able to see students' assignment, but student won't be able to see other student's assignment. I saw there are several modules to do this kind of work, unfortunately most are for D5, I saw one for D6, autoassignrole module, but I'm not sure if this is the best one or if there's other module more suitable for this task, if anyone has used other similar modules for D6 and can please give some feedback about those modules, it's much appreciated.

TIA
Michael

The

cog.rusty - February 17, 2009 - 03:58

The http://drupal.org/project/autoassignrole module is the only one I know with fairly active development. It can assign roles at registration, either automatically or with user selection.

(There is also http://drupal.org/project/roleassign which can delegate role assignments to some special role.)

Not sure how you can prevent anyone from assigning themselves the teacher role.

Also, to have any access control over what a user role can see you need an additional access control module such as http://drupal.org/project/content_access

Thank so much for your

michaelbr - February 17, 2009 - 10:54

Thank so much for your reply, I'll check it.

TIA
Michael
Einstein: "The world is a dangerous place to live; not because of the people who are evil, but because of the people who don't do anything about it."

Maybe "join role with password"

adam_b - February 17, 2009 - 11:09

You might want to try http://drupal.org/project/join_role_with_password - give the password to teachers only, and make the default role for students.

 
 

Drupal is a registered trademark of Dries Buytaert.