---
title: "Reset another user's password to a generated temporary one (admin only)."
method: POST
path: "/users/{user_id}/password"
tags: ["Users"]
---

# Reset another user's password to a generated temporary one (admin only).

`POST /users/{user_id}/password`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/users/{user_id}/password`
- Auth: HTTP bearer

The recovery path for a user who lost their password when outbound email
is not configured. Every browser session of the user is revoked and they
must choose a new password at next sign-in. API keys are deliberately left
alone, matching `POST /users/me/password`: revoking them would silently
break the user's automation. The temporary password is returned once and
cannot be retrieved again.

Any `users:manage` principal may reset any other user, including another
admin. That is the existing trust model for this permission (it can already
delete users and change their roles); only resetting yourself is refused.

## Path parameters

- `user_id` integer, required

## Response `200`

Password reset; the temporary password is returned once

- ResetUserPasswordResponse: Returned once when an administrator resets another user's password. The temporary password is not stored in retrievable form, so this response is the only place it ever appears. The user must replace it at next sign-in.
  - `must_change_password` boolean, required: Always true: the user must choose a new password at next sign-in.
  - `temporary_password` string, required

## Other responses

- `401`: Unauthorized
- `403`: users:manage required, or attempted to reset your own password (use POST /users/me/password)
- `404`: User not found
- `409`: User is deleted
- `428`: Recent identity verification (step-up) required
- `500`: Internal server error

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-09-25** `bab8add9129b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/users/:user_id/password/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
