CREATE USER reference
CREATE USER
- create a new user in the database.
#
Syntax#
DescriptionCREATE USER
adds a new user to QuestDB instance, with optional password.
Chosen name has to be unique across all users (including superadmin), groups and service accounts.
#
Examples#
Create new user without passwordIt can be verified with:
that yields:
auth_type | enabled |
---|---|
Password | false |
JWK Token | false |
REST Token | false |
#
Create user with passwordIn this case SHOW USER
command returns:
auth_type | enabled |
---|---|
Password | true |
JWK Token | false |
REST Token | false |