The People API provides access to SkyVault people and groups.
- createPersoncreatePerson creates a person (cm:person) object.
- deletePersondeletePerson(username) deletes a person with the given user name from the system.
- createGroupcreateGroup these methods are used to create groups.
- deleteGroupdeleteGroup(group) this method removes a group from the system.
- getMembersgetMembers returns an array of people nodes belonging to the specified group (including all subgroups).
- addAuthorityaddAuthority(parentGroup, authority) adds an authority (User or Group ) to the specified parent group.
- removeAuthorityremoveAuthority(parentGroup, authority) removes an authority from a group.
- getContainerGroupsgetContainerGroups(person) gets the groups that contain the specified authority.
- isAdminisAdmin(person) determines if the specified user is an Administrator authority.
- isGuestisGuest(person) determines if the specified user is a Guest authority.
- changePasswordchangePassword(oldpassword, newpassword) changes the password for the current user only when the old password is supplied.
- setPasswordsetPassword(userName, password) sets the password for the given user. It is only executable by an Administrator authority.
- enableAccountenableAccount(userName) enables a disabled account. It can be invoked only by an Administrator authority.
- disableAccountdiableAccount(userName) disables an enabled account. It can be invoked only by an Administrator authority.
- isAccountEnabledisAccountEnabled(userName) determines if the specified user's account is enabled.
- setQuotasetQuota(person, quota) sets the quota content in bytes for the specified person. It can be invoked only by an Administrator authority.
- getPeoplegetPeople() methods get the collection of people stored in the repository.
- getPersonScriptNode getPerson(username) returns a single (cm:person) node associated with the specified user name, or null if the person does not exist.
- getGroupgetGroup(shortName) this method gets a group given its short name.
- getCapabilitiesgetCapabilities(person) returns a hash of the specified user's capabilities.
- getImmutablePropertiesgetImmutableProperties(person) returns a map of the Person properties that are marked as immutable for the given user.
Parent topic: Scripting API