Закрытие сессий всех пользователей

Закрывает сессии всех доменных пользователей. Пароли приложений потребуется создать заново.

Для выполнения запроса требуется право ya360_security:domain_2fa_write.

Request

POST

https://cloud-api.yandex.net/v1/directory/organizations/{org_id}/sessions/revoke-all

Path parameters

Name

Description

org_id

Type: integer

Идентификатор организации.

Responses

204 No Content

Все активные сессии пользователей организации отозваны.

400 Bad Request

Некорректный запрос.

Body

application/json
{
  "error": "bad_request",
  "description": "Bad request",
  "message": "Bad request",
  "details": {}
}

Name

Description

description

Type: string

Техническое описание ошибки.

Example: Bad request

error

Type: string

Код ошибки

Example: bad_request

message

Type: string

Сообщение об ошибке.

Example: Bad request

details

Type: object

Дополнительные детали ошибки

Example
{}

403 Forbidden

Возможные ошибки:

  • Authorization error
  • SSO user default email change is prohibited
  • SSO user personal info change is prohibited

Body

application/json
{
  "error": "forbidden",
  "description": "Forbidden",
  "message": "Forbidden",
  "details": {}
}

Name

Description

description

Type: string

Техническое описание ошибки.

Example: Forbidden

error

Type: string

Код ошибки

Example: forbidden

message

Type: string

Сообщение об ошибке.

Example: Forbidden

details

Type: object

Дополнительные детали ошибки

Example
{}

404 Not Found

Запрашиваемый ресурс не найден.

Body

application/json
{
  "error": "not_found",
  "description": "Not found",
  "message": "Not found",
  "details": {}
}

Name

Description

description

Type: string

Техническое описание ошибки.

Example: Not found

error

Type: string

Код ошибки

Example: not_found

message

Type: string

Сообщение об ошибке.

Example: Not found

details

Type: object

Дополнительные детали ошибки

Example
{}

409 Conflict

2FA management is not enabled for this organization

Body

application/json
{
  "error": "feature_disabled",
  "description": "2FA management is not enabled for this organization",
  "message": "2FA management is not enabled for this organization",
  "details": {}
}

Name

Description

description

Type: string

Техническое описание ошибки.

Example: 2FA management is not enabled for this organization

error

Type: string

Код ошибки

Example: feature_disabled

message

Type: string

Сообщение об ошибке.

Example: 2FA management is not enabled for this organization

details

Type: object

Дополнительные детали ошибки

Example
{}

422 Unprocessable Entity

Возможные ошибки:

  • Invalid data
  • Missing required field
  • Invalid field value
  • Invalid request body
  • Default email must be one of the user's existing emails
  • Invalid default email
  • Default email cannot be empty
  • Invalid display name
  • Display name cannot be empty

Body

application/json
{
  "error": "invalid_data",
  "description": "Invalid data",
  "message": "Invalid data",
  "details": {}
}

Name

Description

description

Type: string

Техническое описание ошибки.

Example: Invalid data

error

Type: string

Код ошибки

Example: invalid_data

message

Type: string

Сообщение об ошибке.

Example: Invalid data

details

Type: object

Дополнительные детали ошибки

Example
{}
Предыдущая
Следующая