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 255 Next »

Overview

Updates a user with specified properties

Identity $Membership.UpdateUser(identity: ( string | Identity ), properties: UserInfo)

Arguments

( string | Identity ) identity
User identity
UserInfo properties
User properties

Returns

Updated 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.

Example

Set a user password with default emakin organization provider.

var userId = 'e444bcae-edd0-4659-8d8d-65bb3d1fe82c';
$Membership.UpdateUser(userId, {
    providerName : 'Organization',
    id : 'john.doe@6kare.com',
    password : 'myPassword'
});

Example

Associate active directory logon with a user

var userId = 'e444bcae-edd0-4659-8d8d-65bb3d1fe82c';

$Membership.UpdateUser(userId, {
    providerName : 'LDAP',
    id : 'http://ldap.emakin.com/user/john.doe'
});

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