| Syntax |
|
| Documentation | The function $addToGroup adds a user to the given groups:
group_name_n, the name of the group the user is to become a member of. |
| Examples | |
Create a user and add him to the all goups except 'admin_group':
$set{password}{dummy} $//Create the User $createUser{$get{username}}{$get{password}} $//Add the user to all groups except 'admin_group' $forEach{group_name}{$getGroups{}}
$if($not{$equals{$get{group_name}}{admin_group}})
$addToGroup{$get{username}}{$get{group_name}} } |
|
| Group | Security |
| Minimum required transaction-mode: | UPDATE=SECURITY |
| Required scripting permission of the developer | PERMISSION_FL_ADMINISTRATIVE |
| Minimum parameters | 2 |
| Maximum parameters | <unlimited> |