---
title: "LockUser"
method: POST
path: "/admin/users/{user_id}/lock"
tags: ["Admin - Users"]
---

# LockUser

`POST /admin/users/{user_id}/lock`

Lock (deactivate) a user account.

Returns:
    Redirect to user detail page.

## Path parameters

- `user_id` string, uuid, required — The user ID.

## Response `201`

Document created, URL follows

## Other responses

- `400` — Bad request syntax or unsupported method

## Changes

- **2025-12-26** `1df5362b73fc` — 1 info
  - endpoint added
- **2025-12-22** `6b2fad3e4bcc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/litestar-org/apis/app/changes/admin/users/:user_id/lock/post.md)

---

[API](https://skmtc.dev/litestar-org/apis/app.md) · [All operations](https://skmtc.dev/litestar-org/apis/app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litestar-org/app/revisions/461f3baecebb/schema)
