> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/mutations/password-change

# passwordChange Mutation

Change the password of the logged in user.

Requires the AUTHENTICATED\_USER permission.

```graphql
passwordChange(
  newPassword: String!
  oldPassword: String
): PasswordChange
```

Details

```graphql
type PasswordChange {
  user: User
  accountErrors: [AccountError!]! @deprecated
  errors: [AccountError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="new-password"></a>

#### [`newPassword`](#new-password) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

New user password.

<a id="old-password"></a>

#### [`oldPassword`](#old-password) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Current user password.

<a id="type"></a>

### Type

<a id="passwordchange"></a>

#### [`PasswordChange`](/api-reference/users/objects/password-change.md)

Change the password of the logged in user.

Requires the AUTHENTICATED\_USER permission.
