$addToGroup

Adds the given user to the given groups.
Syntax
    $addToGroup{username}{group_name_1}{group_name_2}...{group_name_n}
DocumentationThe function $addToGroup adds a user to the given groups:

    Parameters:
      username, the name of the user to be added 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{username}{dummy}
    $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}}
        }
      }
GroupSecurity
Minimum required transaction-mode:UPDATE=SECURITY
Required scripting permission of the developerPERMISSION_FL_ADMINISTRATIVE
Minimum parameters2
Maximum parameters <unlimited>