Methods
getCustomProperties() → {object}
Returns:
- key value pairs of custom properties.
 
- Type
 - object
 
getHomeContext() → {string}
Returns:
- a context id (not the full resource URI).
 
- Type
 - string
 
getLanguage() → {string}
Returns:
- Type
 - string
 
getName() → {string}
- Description:
 Get the name of the user, this is a a unique name (username) in the current repository's _principals context.
- Source:
 
Returns:
- Type
 - string
 
getSource() → {Object}
Returns:
- Type
 - Object
 
isDisabled() → {boolean}
- Description:
 Check if the user is disabled. Disabled users cannot sign in, although they still exist for lookup, e.g. when presenting creators and contributors.
- Source:
 
Returns:
- Type
 - boolean
 
setCustomProperties(customProperties) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
customProperties | 
            
            object | 
Returns:
- Type
 - Promise
 
setDisabled(disabled) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
disabled | 
            
            boolean | 
Returns:
- Type
 - Promise
 
setHomeContext(contextId) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
contextId | 
            
            string | a context id (not the full resource URI).  | 
        
Returns:
- Type
 - Promise
 
setLanguage(language) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
language | 
            
            string | 
Returns:
- Type
 - Promise
 
setName(name) → {Promise}
- Description:
 Set a new name (username), it will not succeed if it is already in use, for instance by another user or group.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
name | 
            
            string | 
Returns:
- Type
 - Promise
 
setPassword(password) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
password | 
            
            string | a new password, should be at least 8 characters long.  | 
        
Returns:
- Type
 - Promise