Loading...
 
Features / Usability

Features / Usability


Automatically assign newly registered user to a specific group

posts: 18 United States

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~

posts: 2881 United Kingdom

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

posts: 18 United States
okay - Thanks!!

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting