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:
- im.department.managers.get — managers of the specified departments,
- im.department.employees.get — employees of the specified departments,
- im.department.colleagues.list — list of colleagues of the current user. For a manager, the method will return a list of subordinates and all managers.
By using the parameter USER_DATA = 'Y', you can get detailed information about each employee.
Overview of Methods
Scope:
imWho can execute the method: any intranet user, except for bots
|
Method |
Description |
|
Retrieves information about the department |
|
|
Retrieves a list of department managers |
|
|
Retrieves a list of department employees |
|
|
Retrieves a list of colleagues of the current user |