Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 241 Next »

Overview

Creates a new user with specified properties

Identity $Membership.CreateUser(properties: UserInfo)

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

  • No labels