Loading...
 
Skip to main content

Features / Usability


Automatically assign newly registered user to a specific group

Hi,

Is there a way to automatically assign a new user to a certain group? Right now the new user is assigned to the Registered group, but I would like them to be assigned to a group called Members. How can I do this?

Thanks,

~Lindsay~

You can modify the code in lib/userslib.php

search for the add_user function and this line
Copy to clipboard
$this->assign_user_to_group($user, 'Registered');

Add another line after it exactly the same but with your groupname:
Copy to clipboard
$this->assign_user_to_group($user, 'Registered'); $this->assign_user_to_group($user, 'Members');


You need to leave Registered in as its a Internal Tiki group.

Damian

okay - Thanks!!