add_user_to_group()
Parameters
- Token(character varying)
- GroupID(integer)
- NewUserName(character varying)
- NewUserType(integer)
Returns
Description
- Adds a user[NewUserName] to a usergroup[GroupID]. The name should be the user's login name.
[NewUserType] should be one of:
- admin – can add and remove users, can read, write, and ?delete? messages
- write – can only add messages to the usergroup but not read. You can always read your personal messages and direct replies to them but not the messages from other users.
- read – can only read messages in the usergroup but not write
- read_write – can both read and write to the usergroup
Errors
- - This GroupID is not valid.
- - Invalid Session.
- - This user does not exist in the system. Users must be added to system first
- - This user does not have permission to do add members.
- - User is already added to group.
- - User type is invalid.
Related functions