Add a new employee
The employee information. LastName is a required field.
Returns Promise object that represents an object that is the newly-added user
Add a licenses to an employee
The IDs of the employees to whom to add licenses.
The license codes to add.
Returns Promise object that represents an object that is the newly-added user
Get all employees
Returns Promise object that represents an object that is the newly-added user
Get the employees in the group with the given group ID.
Which group to get employee list.
Whether to include inactive employees.
Returns Promise object that represents an object that is the newly-added user
Check names for uniqueness
an array list of the names (strings) to check for uniqueness
Returns Promise object that represents an object that is the newly-added user
Get employee custom data fields by id
employeeSid with which the custom fields are associated
OptionalcustFieldIds: string[]which custom field IDs to retrieve.
Returns Promise object that represents an object that is the newly-added user
Delete by ID
The SIDs of the employees to delete.
Returns Promise object that represents an object that is the newly-added user
Delete licenses from an employee
The IDs of the employees from whom to delete licenses.
The license codes to delete.
Returns Promise object that represents an object that is the newly-added user
Get employee by ID
The SID of the employee to retrieve.
Returns Promise object that represents an object that is the newly-added user
Get employees by IDs
The SIDs of the employees to retrieve.
Returns Promise object that represents an object that is the newly-added user
Get groups that given employees are member of by employee sids.
The SIDs of the employees to retrieve groups for.
Returns Promise object that represents an object that is the newly-added user
Search for employees
an object of employee properties to search for. Support properties are: AdDomain, DomainId, Email, EmployeeId, EmployeeSid, LoginName, UniqueName, FirstName, Lastname, FullName, IsUser, Organization
search by active or all employees. Default is false (active only).
the maximum number of results to return. Default is 20.
Returns Promise object that represents an object that is the newly-added user
Update existing employee(s)
The SIDs of the employees to update.
Returns Promise object that represents an object that is the updated user
A plugin that contains "general" methods for a Cityworks install