Departments in Chats: Overview of Methods
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The methods im.department.* retrieve information about users in departments from the company's structure. They help you collect the composition of a department and find managers and colleagues in order to add these people to a chat or send them a notification. The subsection is part of the Chats in Bitrix24 section.
The im.department.* methods are current and have no im.v2 counterparts or deprecated variants.
Quick navigation: all methods
User documentation: Company Structure: New Interface and Features
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 from the Company Structure section or the search departments by name method.
User. The methods return employee identifiers. These identifiers are suitable for the chat methods: they can be passed in USERS of the im.chat.user.add method or in USER_ID of the im.notify method. Detailed messenger user data is returned by the methods of the Users in Chats subsection.
How to Choose a Method
|
If You Need To |
Method |
|
The department name and the identifier of its manager |
|
|
The managers of the specified departments |
|
|
The employees of the specified departments |
|
|
The colleagues of the current user, and for a manager — subordinates and all managers |
Specifics of the Methods
- by default, the methods return only user identifiers, and im.department.get — the fields of the department itself. To add detailed user data to the response, pass
USER_DATAwith the valueY - pagination is available only for the im.department.colleagues.list method: it is set by the
OFFSETandLIMITparameters, and the response containstotalandnext. The other methods return the whole result at once - the methods work only for company employees: they are not available to extranet users and bots
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 |