---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.4
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/alter-user.md
  - https://ydb.tech/docs/ru/yql/reference/syntax/alter-user.md
sourcePath: en/core/yql/reference/syntax/alter-user.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ydb.tech/docs/en/llms.txt

# ALTER USER

Changes the user password.

## Syntax

```yql
ALTER USER user_name [ WITH ] option [ ... ]
```

* `user_name`: The name of the user.
* `option` — The command option:

  * `PASSWORD 'password'` — changes the password to `password`.
  * `PASSWORD NULL` — sets an empty password.
  * `NOLOGIN` - disallows user login (user lockout).
  * `LOGIN` - allows user login (user unlocking).
