---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ydb.tech/docs/en/yql/reference/syntax/alter-user.md?version=v25.4
  - https://ydb.tech/docs/ru/yql/reference/syntax/alter-user.md?version=v25.4
  - href: en/yql/reference/syntax/alter-user.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
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).
