Skip to content

CreateUser

Creates a new user with specified properties

1
$Membership.CreateUser(properties: UserInfo):Identity

Parameters

UserInfo properties
    User properties

Returns

Returns the created user Identity

Remarks

Properties object is a javascript object with may contain the following properties. Not all properties are required, only specified properties are updated.

Set a user password with default emakin organization provider.

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

Types

UserInfo

avatar : large : string

normal : string

small : string
Avatar urls of user

email : string
Email address of user

firstname : string
First name of user

id : string
Provider specific user id

language : string
Language of user

lastname : string
Last name of user

name : string
Full name of user

otherProperties : Array<UserInfoPropery>
Provider specific other properties to map

password : string
Password of user.

providerName : string
Name of provider. Default is "Organization"

subjectId : string
Provider specific subject id

UserInfoPropery

name : string
Name of property

value : string
Value of property

See Also