In this blog, we will cover how to create user in influxdb without operator token. This is useful when you do not have access to the initial user’s token or you are unable to create an operator token for some other reason. In addition, new user cannot be added via UI and you will have to create it using CLI. We will be using an alternate approach using initial user’s credentials to create additional users in influx db.

You can also use this method if you are encountering an error like – Error: Write:users is unauthorized

Pre-requisite

InfluxDB installed and admin user created

Influx CLI installed on computer

Create Config

To create config, run the following command: 

influx config create -a --username-password ADMINUSER -n myconfig -u INFLUXDBURL

Enter Admin password at prompt

Replace the following:
ORG: Organization name for the new user
ADMINUSER: Username of the admin user
INFLUXDBURL: URL for Influx DB

Create User in InfluxDB

To create user, run the following command:

influx user create –org ORG –name USERNAME –password PASSWORD

Replace the following:
ORG: Organization name for the new user
USERNAME: Username of the new user
PASSWORD: Password for the new user

Assign All Access to New User in InfluxDB

To assign all access to new user, run the following command:

influx auth create --all-access -u USERNAME -o ORG

Replace the following:

In conclusion, we covered how to create user in InfluxDB without operator token.

We hope you found this blog useful. If so, please comment below and also checkout our other blogs HERE

About InfluxDB

InfluxDB, developed by InfluxData, is an open-source time-series database. Influx DB is ideal for operations monitoring, application metrics, I0T sensor data, and real-time analytics, InfluxDB excels in storing and retrieviing time-series data efficiently. InfluxDB is in RUST language.

 

Leave a Reply

Your email address will not be published. Required fields are marked *