Retrieve Data on Workgroup socialnetwork.api.workgroup.get
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.
Scope:
socialnetworkWho can execute the method: any user
The method socialnetwork.api.workgroup.get returns information about a workgroup, project, scrum, or collaboration based on the identifier.
An administrator can retrieve information about any group on the account, even if it is secret and they are not a member.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
params* |
Request parameters for retrieving the group. More details below |
Parameter params
Required parameters are marked with *
|
Name |
Description |
|
groupId* |
Group identifier. The value for this field can be obtained using the method sonet_group.get |
|
select |
List of additional fields to retrieve, returned in |
|
mode |
Request mode. Can only take the value |
Parameter select
|
Name |
Description |
|
ACTIONS |
Operations available to the current user on the group |
|
AVATAR |
URL of the group's compressed user avatar |
|
AVATAR_DATA |
Information about the group's avatar |
|
AVATAR_TYPES |
Types of avatars for groups |
|
COUNTERS |
Number of unaccepted requests and invitations to join the group |
|
DATE_CREATE |
Date and time of group creation in a more readable format |
|
DEPARTMENTS |
Departments of employees added to the group |
|
EFFICIENCY |
Group efficiency |
|
FEATURES |
Available tools in the group specified in the advanced group settings |
|
GROUP_MEMBERS_LIST |
List of active group members, invited users, and users awaiting confirmation to join the group |
|
LIST_OF_MEMBERS |
List of group members with their information |
|
LIST_OF_MEMBERS_AWAITING_INVITE |
Users awaiting confirmation to join the group |
|
OWNER_DATA |
Data about the group owner |
|
PIN |
Whether the group is pinned for the current user on the groups and projects page. Returned as |
|
PRIVACY_TYPE |
Group privacy level. Returned as |
|
SUBJECT_DATA |
Information about the group's subject specified in the advanced group settings |
|
TAGS |
Group tags specified in the advanced group settings |
|
USER_DATA |
Data about the current user's role in the group |
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"params":{"groupId":622,"select":["DEPARTMENTS","TAGS"]}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/socialnetwork.api.workgroup.get
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"params":{"groupId":622,"select":["DEPARTMENTS","TAGS"]},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/socialnetwork.api.workgroup.get
try
{
const response = await $b24.callMethod(
'socialnetwork.api.workgroup.get',
{
params: {
groupId: 622,
select: [ 'DEPARTMENTS', 'TAGS' ],
},
}
);
const result = response.getData().result;
console.log(result);
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'socialnetwork.api.workgroup.get',
[
'params' => [
'groupId' => 622,
'select' => [ 'DEPARTMENTS', 'TAGS' ],
],
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error getting workgroup info: ' . $e->getMessage();
}
BX24.callMethod(
'socialnetwork.api.workgroup.get', {
params: {
groupId: 622,
select: [ 'DEPARTMENTS', 'TAGS' ],
},
}, result => {
console.log(result);
});
require_once('crest.php');
$result = CRest::call(
'socialnetwork.api.workgroup.get',
[
'params' => [
'groupId' => 622,
'select' => ['DEPARTMENTS', 'TAGS']
]
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
How to Use Examples in Documentation
Response Handling
HTTP Status: 200
{
"result": {
"ID": 622,
"ACTIVE": "Y",
"SITE_ID": "s1",
"SUBJECT_ID": 1,
"NAME": "Group for Demonstrating the Method",
"DESCRIPTION": "First line of the group description\r\nSecond line of the group description",
"KEYWORDS": "group tag, another group tag",
"CLOSED": "N",
"VISIBLE": "Y",
"OPENED": "N",
"DATE_CREATE": "04/17/2025 19:37:55",
"DATE_UPDATE": "04/17/2025 19:40:48",
"DATE_ACTIVITY": "04/17/2025 19:40:48",
"IMAGE_ID": 0,
"AVATAR_TYPE": "folder",
"OWNER_ID": 1,
"INITIATE_PERMS": "K",
"NUMBER_OF_MEMBERS": 1,
"NUMBER_OF_MODERATORS": 1,
"PROJECT": "N",
"PROJECT_DATE_START": null,
"PROJECT_DATE_FINISH": null,
"SEARCH_INDEX": "Group for Demonstrating the Method First line of the group description\r\nSecond line of the group description group tag #group tag another group tag #another group tag group@example.com",
"LANDING": "N",
"SCRUM_OWNER_ID": 0,
"SCRUM_SPRINT_DURATION": 0,
"SCRUM_TASK_RESPONSIBLE": "",
"TYPE": "group",
"MEMBERS": [
1,
10,
20
],
"CHAT_ID": 1034,
"DIALOG_ID": "chat1034",
"ORDINARY_MEMBERS": [
10
],
"INVITED_MEMBERS": [
38
],
"MODERATOR_MEMBERS": [
20
],
"SITE_IDS": [
"s1"
],
"TAGS": [
"another group tag",
"group tag"
],
"DEPARTMENTS": [
8
],
"NUMBER_OF_MEMBERS_PLURAL": 0
},
"time": {
"start": 1744908074.244266,
"finish": 1744908074.279072,
"duration": 0.034806013107299805,
"processing": 0.010703086853027344,
"date_start": "2025-04-17T19:41:14+02:00",
"date_finish": "2025-04-17T19:41:14+02:00",
"operating_reset_at": 1744908674,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Result of the request execution. More details below |
|
time |
Information about the request execution time |
Key result
|
Name |
Description |
|
ID |
Group identifier |
|
ACTIVE |
Flag |
|
SITE_ID |
Identifier of the site to which the group belongs |
|
SUBJECT_ID |
Identifier of the group's subject. The subject of the group is specified in the advanced group settings |
|
NAME |
Group name |
|
DESCRIPTION |
Group description |
|
KEYWORDS |
Group tags separated by commas: |
|
CLOSED |
Flag |
|
VISIBLE |
Flag |
|
OPENED |
Flag |
|
DATE_CREATE |
Date of group creation in the format
|
|
DATE_UPDATE |
Date of group update in the format |
|
DATE_ACTIVITY |
Date of last activity in the group in the format |
|
IMAGE_ID |
Identifier of the group's user avatar in the |
|
AVATAR_TYPE |
Type of the last set system avatar:
|
|
OWNER_ID |
Identifier of the group owner |
|
INITIATE_PERMS |
Who has the right to invite users to the group:
|
|
NUMBER_OF_MEMBERS |
Number of group members |
|
NUMBER_OF_MODERATORS |
Number of group moderators |
|
PROJECT |
Flag |
|
PROJECT_DATE_START |
Project start date in the format |
|
PROJECT_DATE_FINISH |
Project end date in the format |
|
SEARCH_INDEX |
Index, keywords for searching the group |
|
LANDING |
Flag |
|
SCRUM_MASTER_ID |
Identifier of the scrum master. |
|
SCRUM_SPRINT_DURATION |
Duration of the scrum sprint in seconds. |
|
SCRUM_TASK_RESPONSIBLE |
Default executor when assigning tasks:
|
|
TYPE |
Type of group:
|
|
MEMBERS |
Identifiers of group members |
|
CHAT_ID |
Identifier of the group chat |
|
DIALOG_ID |
Identifier of the group dialog |
|
ORDINARY_MEMBERS |
Array of user identifiers in the group who are not owners or moderators |
|
INVITED_MEMBERS |
Array of portal user identifiers who have been invited to the group but have not yet accepted |
|
MODERATOR_MEMBERS |
Array of group member identifiers with the role of moderator |
|
SITE_IDS |
List of site identifiers to which the group belongs |
|
AVATAR |
URL of the group's compressed user avatar. |
|
AVATAR_TYPES |
Object containing group avatars (detailed description) |
|
AVATAR_DATA |
Information about the group's avatar (detailed description) |
|
OWNER_DATA |
Information about the group owner (detailed description) |
|
SUBJECT_DATA |
Information about the group's subject specified in the advanced group settings (detailed description) |
|
TAGS |
Group tags, similar to |
|
ACTIONS |
Data about operations available to the current user on the group (detailed description) |
|
USER_DATA |
Information about the current user regarding the group (detailed description) |
|
DEPARTMENTS |
Array of identifiers of departments added to the group |
|
IS_PIN |
Value |
|
PRIVACY_CODE |
Group privacy level:
|
|
LIST_OF_MEMBERS |
Array with information about group users (detailed description) |
|
FEATURES |
Array with information about group tools (detailed description) |
|
LIST_OF_MEMBERS_AWAITING_INVITE |
Information about users awaiting confirmation to join the group (detailed description) |
|
GROUP_MEMBERS_LIST |
Information about users associated with the group (detailed description) |
|
COUNTERS |
Counters (detailed description) |
|
EFFICIENCY |
Group efficiency |
|
ADDITIONAL_DATA |
Additional data for the current user (detailed description) |
Object AVATAR_TYPES
|
Name |
Description |
|
sort |
Avatar sorting |
|
mobileUrl |
URL for displaying the avatar in the mobile application |
|
webCssClass |
CSS class of the avatar |
|
entitySelectorUrl |
URL of the avatar for entity selector |
Object AVATAR_DATA
|
Name |
Description |
|
type |
Type of avatar:
|
|
id |
Identifier of the avatar:
|
Object OWNER_DATA
|
Name |
Description |
|
ID |
Identifier of the group owner |
|
PHOTO |
URL of the compressed avatar of the group owner |
|
FORMATTED_NAME |
Formatted name of the group owner according to portal settings |
Object SUBJECT_DATA
|
Name |
Description |
|
ID |
Identifier of the subject |
|
NAME |
Name of the subject |
Object ACTIONS
|
Name |
Description |
|
EDIT |
Value |
|
DELETE |
Value |
|
INVITE |
Value |
|
JOIN |
Value |
|
LEAVE |
Value |
|
FOLLOW |
Value |
|
PIN |
Value |
|
EDIT_FEATURES |
Value |
Object USER_DATA
|
Name |
Description |
|
ROLE |
User's role in the group:
|
|
INITIATED_BY_TYPE |
Who initiated the user's connection to the group:
|
|
IS_SUBSCRIBED |
Value |
Object LIST_OF_MEMBERS
|
Name |
Description |
|
id |
User identifier |
|
isOwner |
Value |
|
isModerator |
Value |
|
isScrumMaster |
Value |
|
isAutoMember |
Value |
|
name |
User's first name |
|
lastName |
User's last name |
|
position |
User's position |
|
photo |
URL of the user's compressed avatar |
Object FEATURES
|
Name |
Description |
|
featureName |
Symbolic identifier of the tool |
|
name |
Name of the tool |
|
customName |
Custom name of the tool in the advanced group settings |
|
id |
Numeric identifier of the tool |
|
active |
Value |
Object LIST_OF_MEMBERS_AWAITING_INVITE
|
Name |
Description |
|
id |
User identifier |
|
name |
Formatted name according to portal settings |
|
photo |
URL of the user's compressed avatar |
Object GROUP_MEMBERS_LIST
|
Name |
Description |
|
id |
Member identifier |
|
invited |
Value |
|
isAwaiting |
Value |
|
isMember |
Value |
Object COUNTERS
|
Name |
Description |
|
workgroup_requests_out |
Current number of unaccepted invitations to the group |
|
workgroup_requests_in |
Current number of requests to join the group |
Object ADDITIONAL_DATA
|
Name |
Description |
|
ROLE |
Current user's role in the group:
|
|
INITIATED_BY_TYPE |
Who initiated the user's connection to the group:
|
Error Handling
HTTP Code: 400
{
"error": "SONET_CONTROLLER_WORKGROUP_EMPTY",
"error_description": "No value for the workgroup ID was provided."
}
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Possible Error Codes
|
Code |
Description |
Value |
|
|
|
The |
|
|
|
The group with identifier |
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not permitted for calls using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The HTTPS protocol is required for method calls |
|
|
|
The REST API is blocked due to overload. This is a manual individual block; please contact Bitrix24 technical support to lift it |
|
|
|
The REST API is only available on commercial plans |
|
|
|
The user associated with the access token or webhook used to call the method lacks the necessary permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the portal administrator has restricted access to this application to specific users only |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Create a group or project sonet_group.create
- Change group or project sonet_group.update
- Get a List of Workgroups socialnetwork.api.workgroup.list
- Get a list of groups and projects sonet_group.get
- Delete group or project sonet_group.delete