Staff (employee)

employee

Result: list of elements

Employees

Access level: root, admin

Show employee list

Function: employee

Result: list of elements

In the platform web interface: Provider section → Staff in the left menu of the platform.

Returns a list of employees with main parameters. Supports filtering, sorting, and pagination.

Access level: root, admin

ParameterTypeRequiredValue
elidPositive integernoFilter by unique employee identifier.
nameStringnoEmployee login. Wildcard character * is supported.
realnameStringnoFull name of the employee. Wildcard character * is supported.
emailStringnoEmployee email. Wildcard character * is supported.
departmentStringnoDepartments to which the employee belongs. Wildcard character * is supported.
statusString (composite)noAdditional employee parameters: enabled, default_access_allow, all_ip_access, ip_access, totp.
sessionString (composite)noInformation about user activity: onsite, another_session, has_session.
sortStringnoColumn name for sorting: id, name, realname, email, department.
pagesizePositive integernoNumber of records per result page.
startidxNon-negative integernoOffset of the first record for pagination.

Create employee

Function: employee.edit

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → click Add.

The function creates a new employee. Requires confirmation via parameter sok.

Access level: root, admin

ParameterTypeRequiredValue
nameStringyesLogin for system access.
realnameStringnoLast name, First name, Patronymic (if necessary) of the employee.
positionStringnoEmployee position. Displayed in requests in the BILLmanager 6 interface.
passwdStringyesAccess password.
confirmStringyesPassword confirmation (must match passwd).
emailStringnoEmployee email.
phoneStringnoEmployee phone number. Can be used for sending SMS notifications.
departmentString (list)noDepartments to which the employee must be included. Listed via comma.
default_access_allowFlagnoAllow the employee full access, overriding department permissions. Setting it to on enables the option.
all_ip_accessFlagnoAllow access from any IP address. Setting it to on enables the option.
ip_accessString (list)noList of allowed IP addresses. Used if all_ip_access is not set.
sokStringyesSetting the value to ok confirms operation execution. Without this parameter, changes will not be applied.

Edit employee data

Function: employee.edit

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → click Edit.

The function is used for editing an existing employee. Requires confirmation via parameter sok.

Access level: root, admin

ParameterTypeRequiredValue
elidPositive integeryesUnique identifier of the employee to be edited.
nameStringnoNew login for system access.
realnameStringnoNew full name of the employee.
positionStringnoNew employee position.
passwdStringnoNew access password. If not specified — password is not changed.
confirmStringnoConfirmation of the new password.
emailStringnoNew employee email.
phoneStringnoNew employee phone number.
departmentString (list)noDepartments to which the employee belongs. Listed via comma.
default_access_allowFlagnoSet full access. Setting the value to on enables, empty value — disables.
all_ip_accessFlagnoAllow access from any IP address. Setting the value to on enables, empty — disables.
ip_accessString (list)noNew list of allowed IP addresses.
sokStringyesSetting the value to ok confirms operation execution.

Delete employee

Function: employee.delete

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → click Delete.

Supports deletion of multiple employees via comma. Confirmation via parameter sok is required. Cannot delete the current session (self=on).

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of employees via comma. For example, 123,456.
sokStringyesSetting the value to ok confirms operation execution.

Enable access to billing

Function: employee.resume

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → select the employee → click Enable.

Activates employee access to the system. Hidden if the employee is already active (enabled=on).

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of employees via comma.
sokStringyesSetting the value to ok confirms operation execution.

Disable access to billing

Function: employee.suspend

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → select the employee → click Disable.

Suspends employee access to the system. Hidden if the employee is already inactive (enabled=off).

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of employees via comma.
sokStringyesSetting the value to ok confirms operation execution.

Terminate employee sessions

Function: employee.logout

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → click Log out.

Terminates all active sessions of the employee. Available only if an active session exists (has_session=on) and for other accounts (self=off).

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of employees via comma.
sokStringyesSetting the value to ok confirms operation execution.

Log in with employee rights

Function: employee.su

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → select the employee → click Log in.

Opens a session on behalf of the selected employee. Hidden with restriction not_admin_to_admin.

Access level: root, admin

ParameterTypeRequiredValue
elidPositive integeryesUnique identifier of the employee login under which the request must be performed.

Set access rights

Function: rights2.user

Result: list of elements

In the platform web interface: Provider section → Staff → select the employee → click Perm.

Returns a list of available rights for assignment to the account.

Access level: root, admin

ParameterTypeRequiredValue
elidStringnoFilter by right name (element name).
captionStringnoRight name. Wildcard character * is supported.
accessFlagnoAccess status: on — the right is enabled, off — disabled.

Enable access right

Function: rights2.user.resume

Result: successful operation completion or an error message.

In the platform web interface: Provider section → StaffPerm. section → click Enable.

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several right names (name) via comma.
sokStringyesSetting the value to ok confirms operation execution.

Disable access right

Function: rights2.user.suspend

Result: successful operation completion or an error message.

In the platform web interface: Provider section → StaffPerm. section → click Disable.

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several right names (name) via comma.
sokStringyesSetting the value to ok confirms operation execution.

Employee list filter

Function: employee.filter

Result: successful operation completion or an error message.

In the platform web interface: filter panel in the section Staff.

Filter conditions are saved and applied to all subsequent calls to employee until changed or reset.

Access level: root, admin, user

ParameterTypeRequiredValue
nameStringnoFilter by login. Wildcard character * is supported.
realnameStringnoFilter by full name. Wildcard character * is supported.
emailStringnoFilter by email. Wildcard character * is supported.
departmentStringnoFilter by departments. Wildcard character * is supported.
resetFlagnoSetting the value to on resets all set filters.

Employee department

Function: employee.department

Result: list of elements

In the platform web interface: Provider section → Staff → select the employee → click Departments.

Returns a list of departments to which the employee belongs.

Access level: root, admin

ParameterTypeRequiredValue
elidPositive integernoDepartment identifier.
nameStringnoDepartment name. Wildcard character * is supported.
statusStringnoDepartment status: on — active, off — inactive.

Include employee in department

Function: employee.department.resume

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → section Departments → click Assign.

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of "employee-department" association records via comma.
sokStringyesSetting the value to ok confirms operation execution.

Exclude employee from department

Function: employee.department.suspend

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → section Departments → click Unassign.

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of "employee-department" association records via comma.
sokStringyesSetting the value to ok confirms operation execution.

Delete department association

Function: employee.department.delete

Result: successful operation completion or an error message.

In the platform web interface: Provider section → section Departments → click Delete.

Access level: root, admin

ParameterTypeRequiredValue
elidString (list)yesOne or several id of association records via comma.
sokStringyesSetting the value to ok confirms operation execution.

Sending SMS

Function: employee.sms

Result: successful operation completion or an error message.

For the option to work, an SMS gateway must be configured.

In the platform web interface: Provider section → Staff → click SMS.

Sends an SMS message to the employee. Parameter sok is required for modification/creation.

Access level: admin

ParameterTypeRequiredValue
elidPositive integernoEmployee identifier for viewing or sending SMS.
typeStringnoThe phone number type for sending: phone, mobile, etc.
phoneStringnoThe phone number to which the message will be sent.
messageStringnoText of the message to be sent.
sokStringnoSetting the value to ok confirms message sending.

Support center settings

Function: employee.support_tool_settings

Result: successful operation completion or an error message.

In the platform web interface: Provider section → Staff → click Settings.

Returns or modifies parameters of the support center operation for the employee.

Access level: admin

ParameterTypeRequiredValue
elidPositive integernoEmployee identifier for viewing settings.
param_nameStringnoName of the configurable parameter.
param_valueStringnoNew parameter value.
sokStringnoSetting the value to ok confirms saving changes.

Assign responsible employee

Function: support_tool_responsible

Result: successful operation completion or an error message.

In the platform web interface: click Transfer in the ticket.

Assigns a request to an employee or department. Use either elid or plid. When using plid, you must log in as the employee to whom the ticket is assigned.

Access level: root, admin

ParameterTypeRequiredValue
elidPositive integeryesid of the request in the "All tickets" section.
plidPositive integeryesid of the request in the "Tickets" section.
set_responsiblePositive integeryesid of the employee or department. For a department, the prefix d_ is used.
set_responsible_defaultFlagnoSetting the value to on will assign the default responsible person.
sokStringnoSetting the value to ok allows submitting the form.
suStringnoThe employee login to be used when executing the request.
Example request via mgrctl
/usr/local/mgr5/sbin/mgrctl -m billmgr support_tool_responsible su=admin set_responsible=43 elid=2 sok=ok
Example request
https://IP-address:port/billmgr?func=support_tool_responsible&elid=72&set_responsible=7416&sok=ok
More details