UserManagerServicesCreateNewUser Method Ingeniux CMS Web Services API

Creates a new User

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
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

Reference