Departments in Chats: Overview of Methods

The methods im.department.* retrieve information about users in departments from the company's structure. They only work for company employees.

Quick Navigation: All Methods and Events

Relationship of Methods with Other Objects

Department. The methods obtain information about users by the department identifier ID. You can get the department identifier using the get department list method or the search departments by name method.

Get Department Data

The method im.department.get retrieves the department name and the identifier of the manager. By using the parameter USER_DATA = 'Y', you can include data about the department manager in the response.

Get User List

You can obtain lists of user identifiers using the following methods:

By using the parameter USER_DATA = 'Y', you can get detailed information about each employee.

Overview of Methods

Scope: im

Who can execute the method: any intranet user, except for bots

Method

Description

im.department.get

Retrieves information about the department

im.department.managers.get

Retrieves a list of department managers

im.department.employees.get

Retrieves a list of department employees

im.department.colleagues.list

Retrieves a list of colleagues of the current user