# REMOVE USER reference

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

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

`REMOVE USER` - removes user from one or more groups.

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

---

## Syntax

```questdb-sql
REMOVE USER userName FROM groupName [, groupName ...];
```

## Examples

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

Checking user groups with:

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

should yield an empty list.
