---
title: "Force a user to log out"
method: POST
path: "/authorization/accounts/{accountId}/forceLogout"
tags: ["Authorization"]
---

# Force a user to log out

`POST /authorization/accounts/{accountId}/forceLogout`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/authorization/accounts/{accountId}/forceLogout`
- Auth: none declared

Forces a user to log out and removes their active session.

## Path parameters

- `accountId` string, required: String representation of a MongoDB ObjectId

## Response `200`

The output of removing a session

- AuthorizationForceLogoutResponse200
  - `status` 'OK' | 'Created': The status of the API request.
  - `message` string: Message containing either confirmation of the operation or the reason for the failure of the operation.

## Other responses

- `500`: Error response from API

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
