Influxdb: create user with admin role

Created on 11 Sep 2015  路  3Comments  路  Source: influxdata/influxdb

Hello,
How can i create a user with admin role?
When i tried
CREATE USER test WITH PASSWORD '*'

show users
user admin
test false

It sets admin as false. What is the command to set the admin value to true?

Thanks,
Shilpa

Most helpful comment

The syntax for granting privileges is explained on the administration page in the docs.

To add admin privileges to a newly created user, you need to add WITH ALL PRIVILEGES at the end. E.g.

CREATE USER test WITH PASSWORD 'password' WITH ALL PRIVILEGES

All 3 comments

The syntax for granting privileges is explained on the administration page in the docs.

To add admin privileges to a newly created user, you need to add WITH ALL PRIVILEGES at the end. E.g.

CREATE USER test WITH PASSWORD 'password' WITH ALL PRIVILEGES

The above referenced page no longer exists. Where is the administration page now?

The info is now on this page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonira picture jonira  路  4Comments

leehambley picture leehambley  路  4Comments

MayukhSobo picture MayukhSobo  路  3Comments

dandv picture dandv  路  3Comments

udf2457 picture udf2457  路  3Comments