# ALTER SERVICE ACCOUNT WITH PASSWORD reference

> **For AI agents:** the complete documentation index is at [llms.txt](https://questdb.com/docs/llms.txt). Every page is available as markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` request header.

ALTER SERVICE ACCOUNT WITH PASSWORD sets a service account's password. Applies to RBAC in QuestDB Enterprise.

<EnterpriseNote>
  RBAC provides fine-grained database permissions management.
</EnterpriseNote>

`ALTER SERVICE ACCOUNT ... WITH PASSWORD` sets a service account's password.

---

## Syntax

```questdb-sql
ALTER SERVICE ACCOUNT serviceAccountName WITH PASSWORD password;
```

## Description

Setting a password replaces any existing one. Empty passwords are rejected, so
`WITH PASSWORD ''` cannot be used to clear one; use
[`WITH NO PASSWORD`](/docs/query/sql/acl/alter-service-account-with-no-password/)
instead.

## Examples

```questdb-sql
ALTER SERVICE ACCOUNT client_app WITH PASSWORD '1m@re@lh@cker';
```

Verify with:

```questdb-sql
SHOW SERVICE ACCOUNT client_app;
```

| auth_type  | enabled |
| ---------- | ------- |
| Password   | true    |
| JWK Token  | false   |
| REST Token | false   |

## See also

- [ALTER SERVICE ACCOUNT WITH NO PASSWORD](/docs/query/sql/acl/alter-service-account-with-no-password/)
- [CREATE SERVICE ACCOUNT](/docs/query/sql/acl/create-service-account/)
