Skip to content

CreateUser

Creates a new user with the specified properties.

1
$Membership.CreateUser(properties: `avatar` : `large` : string

normal : string

small : string
The user's avatar URLs.

email : string
The user's email address.

firstname : string
The user's first name.

id : string
The provider-specific user ID.

language : string
The user's language.

lastname : string
The user's last name.

name : string
The user's full name.

otherProperties : Array<name : string
The name of the property.

value : string
The value of the property.>
Additional provider-specific properties to map.

password : string
Password of user.

providerName : string
The provider name. The default is

subjectId : string
The provider-specific subject ID.):Identity

Parameters

avatar : large : string

normal : string

small : string
The user's avatar URLs.

email : string
The user's email address.

firstname : string
The user's first name.

id : string
The provider-specific user ID.

language : string
The user's language.

lastname : string
The user's last name.

name : string
The user's full name.

otherProperties : Array<name : string
The name of the property.

value : string
The value of the property.>
Additional provider-specific properties to map.

password : string
Password of user.

providerName : string
The provider name. The default is

subjectId : string
The provider-specific subject ID. properties
    An object containing the properties for the new user.

Returns

The created user's Identity.

Remarks

The properties object is a JavaScript object that can contain various user properties. Not all properties are required; only the properties specified in this object will be used to create the user.

Creating a user with a password using the default emakin organization provider

1
2
3
4
var user = $Membership.CreateUser({
    id : '[email protected]',
    password : 'myPassword'
});

See Also