# ADD USER 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.

ADD USER SQL keywords reference documentation.  Applies to RBAC in QuestDB Enterprise.

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

To add user to one or more groups in the database, the `ADD USER` keywords are
used.

For full documentation of the Access Control List and Role-based Access Control,
see the [RBAC operations](/docs/security/rbac) page.

---

## Syntax

```questdb-sql
ADD USER userName TO groupName [, groupName ...];
```

## Description

`ADD USER` adds a user to one or more groups.

## Examples

```questdb-sql
ADD USER john to management, audit;
```

It can be verified with:

```questdb-sql
SHOW GROUPS john;
```

that yields:

| name       |
| ---------- |
| management |
| audit      |
