---
ai:
  exclude: true
search:
  tags:
    - Admin User
    - POST
seo:
  description: >-
    Change the password for the user identified by… Reference for the POST
    /rest/api/admin/user/{username}/password endpoint in the Confluence Data
    Center API.
sidebar:
  label: Change password
  badge: POST
title: Change password
type: openapi-operation
---
Change the password for the user identified by the username. 

**Validation rules** : 

- The new password should not be null or blank.

`POST /rest/api/admin/user/{username}/password`

**Request body** (`application/json`)

- `password` (string)

Request body example:

```json
{
  "password": "password"
}
```

**Responses**

- `204` — returns no content if the password is changed successfully
- `400` — returned if any error occurs while changing user password. Refer to the validation rules above.
- `403` — returned if user does not have enough permission to change another user's password. User should be a System admin
- `404` — returned if user with specified userName not found
