Assigning usergroup based on CB field value

Print

Overview

With Joomla 1.5 you can specify which ACL group newly registered users will be placed into (Global Configuration -> System: 'New User Registration Type'. This feature is also available in Joomla 1.7 (Users -> User Manager -> Options: 'New User Registration Group') but now with Joomla new ACL group functionality this has become even more powerful.

With CB 1.7.1+, Joomla 1.7.x and CB Auto Actions 2.0+, in addition to the normal Joomla user group assignment (based on the previous parameters) you can automatically place newly registered users in different Joomla ACL groups depending on a CB field value populated during the registration process.

To make this even more specific the following use case is outlined:

Solution / Example

The CB Auto Action plugin available for Professional members can be easily configured to implement such a use case with the following three actions (one for each group assignment):

With these auto actions published all students will be added to Registered and Student Joomla ACL groups, all parents will be added to Registered and Parent Joomla ACL groups and all teachers will be added to Registered and Parent Joomla ACL groups.

If you do not want users added to Joomla Registered ACL group, then you can create three more auto actions (with same trigger) to remove users from Registered ACL group.

Relevant Information