QuestDB LogoQuestDB Logo
Return to QuestDB.comDocumentationTutorialsBlogEnterprisePublic SlackDiscourse CommunityView QuestDB Repo
⚡️ QuestDB Enterprise
9.2.3|16.5k
  • Release Notes
  • Roadmap
  • Getting Started
    • Introduction
    • Quick start
    • Why QuestDB?
    • Schema Design Essentials
    • Capacity planning
    • Create a sample database
    • Upgrade to Enterprise
    • Enterprise Quick Start
    • Web Console
  • Connect & Ingest
  • Query Data
    • Query & SQL Overview
    • Data Types
      • Overview
      • N-Dim array
      • Decimal
      • Geospatial data
    • SQL execution order
    • SQL Syntax
      • ADD USER
      • ALTER
      • ASSUME SERVICE ACCOUNT
      • CANCEL QUERY
      • CHECKPOINT
      • COMPILE VIEW
      • COPY
      • CREATE
      • DROP
      • EXIT SERVICE ACCOUNT
      • EXPLAIN
      • GRANT
      • INSERT
      • REFRESH MATERIALIZED VIEW
      • REINDEX
      • REMOVE USER
      • RENAME TABLE
      • REVOKE
      • SELECT
      • SHOW
      • SNAPSHOT
      • TRUNCATE TABLE
      • UNION EXCEPT INTERSECT
      • UPDATE
      • VACUUM TABLE
    • Functions
    • Operators
  • Concepts
  • Architecture
  • Configuration
  • Security
  • High Availability
  • Operations
  • Deployment
  • Integrations
  • Tutorials
  • Troubleshooting
  • Release Notes
  • Query Data
  • 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
ADD INDEX
  • Syntax
  • Description
  • Examples

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

Copyright © 2025 QuestDB
PrivacyTerms