QuestDB
EnterpriseMarket DataDocsBlog
8.2.2
  • Roadmap
Download
  • Introduction
  • Quick start
  • Why QuestDB?
  • Migrate from InfluxDB
  • Ingestion Reference
  • Query & SQL Reference
    • Query & SQL Overview
    • Data types
    • SQL execution order
    • SQL Syntax
      • ADD USER
      • ALTER SERVICE ACCOUNT
      • ALTER COLUMN
      • ALTER TABLE
      • ALTER USER
      • ASOF JOIN
      • ASSUME SERVICE ACCOUNT
      • CANCEL QUERY
      • CASE
      • CAST
      • CHECKPOINT
      • COPY
      • CREATE TABLE
      • CREATE GROUP
      • CREATE SERVICE ACCOUNT
      • CREATE USER
      • DECLARE
      • DISTINCT
      • DROP TABLE
      • DROP GROUP
      • DROP SERVICE ACCOUNT
      • DROP USER
      • EXPLAIN
      • EXIT SERVICE ACCOUNT
      • FILL
      • GROUP BY
      • GRANT
      • GRANT ASSUME SERVICE ACCOUNT
      • INSERT
      • JOIN
      • LATEST ON
      • LIMIT
      • ORDER BY
      • PIVOT
      • REINDEX
      • RENAME TABLE
      • REMOVE USER
      • SAMPLE BY
      • SELECT
      • SHOW
      • SNAPSHOT
      • REVOKE
      • REVOKE ASSUME SERVICE ACCOUNT
      • TRUNCATE TABLE
      • UNION EXCEPT INTERSECT
      • UNPIVOT
      • UPDATE
      • VACUUM TABLE
      • WHERE
      • WITH
    • Functions
    • Operators
  • Deployment
  • Operations
  • Guides & Tutorials
  • Concepts
  • Third-party Tools
  • Troubleshooting
  • Query & SQL Reference
  • SQL Syntax
  • ADD USER

ADD USER reference

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 page.

note

Role-based Access Control (RBAC) operations are only available in QuestDB Enterprise.


Syntax​

Flow chart showing the syntax of the ADD USER keyword

Description​

ADD USER adds a user to one or more groups.

Examples​

ADD USER john to management, audit;

It can be verified with:

SHOW GROUPS john;

that yields:

name
management
audit
Edit this page
Previous
SQL execution order
Next
ALTER SERVICE ACCOUNT
  • Syntax
  • Description
  • Examples

Need a hand? Join our vibrant public Slack and Discourse forum communities.

Copyright © 2025 QuestDB
PrivacyTerms