Adding a User to a Group or Multiple Groups

The AddUsertoGroups function is used to add a user to one or more groups. Users can be added to multiple groups in the same account or to groups in different accounts.

GET/Remote/AddUsertoGroups

REQUEST PARAMETERS

ParameterTypeDescriptionRequired
mluser string Username - always in email form.
mltoken -or- mlpass string MapLarge generated auth token -or- the password for the mluser account.
id long ID of the user to be added to the group(s).
groups string A comma-delimited list of group IDs. User will be added to these groups.

EXAMPLE REQUEST

https://my.maplarge.com/Remote/AddUsertoGroups?mluser=user@domain.com&mltoken=token&id=4578&groups=77,33

*Either a token or password can be used in any request where authentication is required.

RETURNS

{ 
"id": "05510369be644692b9d1527ee1be243f", 
"hash": null, 
"success": true, 
"isCached": false, 
"authorized": true, 
"errors": [], 
"timestamp": 1420568624, 
"data": null, 
"userid": "4578” 
}  

ACTION SPECIFIC RESPONSE PARAMETERS

ParameterTypeDescription
userid long ID of the user added to the group(s).