$Membership.CreateUser
Overview
Creates a new user with specified properties
Arguments
UserInfo properties
User properties
Returns
Returns the created user Identity | identity
Remarks
Properties object is a javascript object with may contain the following properties. Not all properties are required, only specified properties are updated.
Example
Set a user password with default emakin organization provider.
var user = $Membership.CreateUser({
id : 'john.doe@6kare.com',
password : 'myPassword'
});
Types
UserInfo
{
// Avatar urls of user
avatar :
{
large : string
normal : string
small : string
}
// Email address of user email : string // First name of user firstname : string // Provider specific user id id : string // Language of user language : string // Last name of user lastname : string // Full name of user name : string // Provider specific other properties to map otherProperties : Array<UserInfoPropery> // Password of user. password : string // Name of provider. Default is "Organization" providerName : string // Provider specific subject id subjectId : string }
UserInfoPropery
{
// Name of property
name : string
// Value of property
value : string
}
See Also
Copyright © 2010 - 2023 Emakin. All rights reserved.