---
title: "Sets a generated password for a user"
method: POST
path: "/users/{id}/password"
tags: ["Users"]
---

# Sets a generated password for a user

`POST /users/{id}/password`

## Request

- Base URL: `/v1` (relative, and the document’s source URL is not known)
- URL: `/v1/users/{id}/password`
- Auth: API key in header `Authorization`

Sets a generated password for a user

## Path parameters

- `id` string, required

## Response `202`

Password setting processed

## Other responses

- `400`: Request rejected due to invalid parameters supplied
- `401`: Authentication information is missing or invalid
- `404`: User not found
- `500`: Failed to process the request due to an internal error

---

[API](https://skmtc.dev/office-of-national-statistics/apis/identity-api.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/identity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/identity-api/revisions/6472459b6b03?raw)
