Creating a New User

The CreateUser function is used to create new users. Users are created with a username, password, and email. Group enrollment and tags are optional and are added as comma separated lists.

GET/Remote/CreateUser

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.
username string Username of new user.
password string Password for new user.
email string Email for new user.
groups string ID of group(s) to enroll new user. Comma-delimited for multiple groups: 77,23,24
tags string A comma-delimited list of tags relating to new user.

EXAMPLE REQUEST

https://my.maplarge.com/Remote/CreateUser?mluser=user@domain.com&mltoken=token&username=newuser63&password=f2jfs242df&email=newuser63@test.com

*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": 8882 
}  

ACTION SPECIFIC RESPONSE VALUES

ParameterTypeDescription
userid long ID of the new user