Click or drag to resize

UserManagerServicesCreateNewUser Method


Creates a new User

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<CreateNewUserResult> CreateNewUser(
	SaveUserInput data
)

Parameters

data
Type: SaveUserInput

Object containing the details of new User, and the User Groups this User will belong to

Examples
Sample JSON input
JavaScript
{
    "data": {
        "info": {
            "newEntry": true,
            "id": "INGENIUX\\developer66",
            "name": "Developer 66",
            "email": "dev66@ingeniux.com",
            "receiveWorkFlowNotificationMail": false,
            "integratedMembershipProvider": "",
            "password": "",
            "readLocales": [],
            "writeLocales": []
        },
        "groups": ["UserGroups/1"]
    }
}

Return Value

Type: XHRServiceResponseGenericCreateNewUserResult

Basic infomration of newly created User

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "name": "Developer 66",
        "email": "dev66@ingeniux.com",
        "receiveWorkFlowNotificationMail": false,
        "groupsAffected": {
            "added": ["UserGroups\/1"],
            "removed": []
        },
        "integratedMembershipProvider": "",
        "lastLoginDate": "",
        "pagesCount": 0,
        "userId": "INGENIUX\\developer66",
        "existing": false
    }
}
See Also