Просмотреть список участников группы
Возвращает список участников группы, таких как сотрудники, подразделения или другие группы.
Примечание
Требуется разрешение на чтение данных о группах.
Request
GET
https://api360.yandex.net/directory/v1/org/{orgId}/groups/{groupId}/members
Path parameters
|
Name |
Description |
|
groupId |
Type: integer Идентификатор группы. |
|
orgId |
Type: integer Идентификатор организации. |
Responses
200 OK
Запрос успешно выполнен.
Body
application/json
{
"departments": [
{
"id": 0,
"name": "example",
"membersCount": 0
}
],
"groups": [
{
"id": 0,
"name": "example",
"membersCount": 0
}
],
"users": [
{
"id": "example",
"nickname": "example",
"departmentId": 0,
"email": "example",
"name": {
"first": "example",
"last": "example",
"middle": "example"
},
"gender": "example",
"position": "example",
"avatarId": "example"
}
]
}
|
Name |
Description |
|
departments |
Type: v1ShortDepartment[] Подразделения. Example
|
|
groups |
Type: v1ShortGroup[] Группы. Example
|
|
users |
Type: v1ShortUser[] Сотрудники. Example
|
v1ShortDepartment
Краткая информация о подразделении.
|
Name |
Description |
|
id |
Type: integer Идентификатор подразделения. |
|
membersCount |
Type: integer Количество сотрудников подразделения с учетом вложенных подразделений. |
|
name |
Type: string Название подразделения. Example: |
Example
{
"id": 0,
"name": "example",
"membersCount": 0
}
v1ShortGroup
Краткая информация о группе.
|
Name |
Description |
|
id |
Type: integer Идентификатор группы. |
|
membersCount |
Type: integer Количество участников группы. |
|
name |
Type: string Название группы. Example: |
Example
{
"id": 0,
"name": "example",
"membersCount": 0
}
v1UserName
ФИО сотрудника.
|
Name |
Description |
|
first |
Type: string Имя сотрудника. Example: |
|
last |
Type: string Фамилия сотрудника. Example: |
|
middle |
Type: string Отчество сотрудника. Example: |
Example
{
"first": "example",
"last": "example",
"middle": "example"
}
v1ShortUser
Краткая информация о сотруднике.
|
Name |
Description |
|
avatarId |
Type: string Идентификатор портрета сотрудника. Example: |
|
departmentId |
Type: integer Идентификатор подразделения, в котором состоит сотрудник. |
|
|
Type: string Основной адрес электронной почты сотрудника. Example: |
|
gender |
Type: string Пол сотрудника. Example: |
|
id |
Type: string<uint64> Идентификатор сотрудника. Example: |
|
name |
Type: v1UserName ФИО сотрудника. Example
|
|
nickname |
Type: string Логин сотрудника. Example: |
|
position |
Type: string Должность сотрудника. Example: |
Example
{
"id": "example",
"nickname": "example",
"departmentId": 0,
"email": "example",
"name": {
"first": "example",
"last": "example",
"middle": "example"
},
"gender": "example",
"position": "example",
"avatarId": "example"
}
400 Bad Request
Некорректный запрос.
Body
application/json
{
"code": 0,
"message": "example",
"details": [
{
"@type": "example"
}
]
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
details |
Type: protobufAny[] Дополнительные сведения об ошибке. Example
|
|
message |
Type: string Описание ошибки. Example: |
protobufAny
|
Name |
Description |
|
@type |
Type: string Example: |
|
[additional] |
Type: unknown Example: |
Example
{
"@type": "example"
}
401 Unauthorized
Пользователь не авторизован.
Body
application/json
{
"code": 0,
"message": "example",
"details": [
{
"@type": "example"
}
]
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
details |
Type: protobufAny[] Дополнительные сведения об ошибке. Example
|
|
message |
Type: string Описание ошибки. Example: |
403 Forbidden
У пользователя или приложения нет прав на доступ к ресурсу, запрос отклонен.
Body
application/json
{
"code": 0,
"message": "example",
"details": [
{
"@type": "example"
}
]
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
details |
Type: protobufAny[] Дополнительные сведения об ошибке. Example
|
|
message |
Type: string Описание ошибки. Example: |
404 Not Found
Запрашиваемый ресурс не найден.
Body
application/json
{
"code": 0,
"message": "example",
"details": [
{
"@type": "example"
}
]
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
details |
Type: protobufAny[] Дополнительные сведения об ошибке. Example
|
|
message |
Type: string Описание ошибки. Example: |
500 Internal Server Error
Внутренняя ошибка сервиса. Попробуйте повторно отправить запрос через некоторое время.
Body
application/json
{
"code": 0,
"message": "example",
"details": [
{
"@type": "example"
}
]
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
details |
Type: protobufAny[] Дополнительные сведения об ошибке. Example
|
|
message |
Type: string Описание ошибки. Example: |
No longer supported, please use an alternative and newer version.