Describes the user full name.
Describe the user name.
Defines the user storage object. This object is maintained as long as the server is alive. It is not stored after the server shuts down. This property is user-related and not session-related.
directory.currentUser.storage.setItem( 'itemInBox', 19 );
var result = directory.currentUser.storage.getItem( 'itemInBox' );
console.log(result);
// 19
Get all groups where the user belongs to.
(default: false
) Set to true
if you want first level results. Set to false
otherwise.
Returns an array of group
Assignes a user to one or more groups.
myUser.putInto( 'sales', 'finance' );
Describes an array of group name
Assignes a user to one or more groups.
var group1 = directory.group( 'finance' );
var group2 = directory.addGroup( 'account' );
myUser.putInto( group1 , group2 )
Describes an array of group object
Removes the user from the directory.
Removes the user from group list.
myUser.removeFrom( 'sales', 'finance' );
Describes an array of group name
Removes the user from group list.
var group1 = directory.group( 'finance' );
var group2 = directory.addGroup( 'account' );
myUser.removeFrom( group1 , group2 )
Describes an array of group object
Update the user password in the directory.
The new password to save
Describes the internal user ID.