I’m currently setting up my first InfluxDB2 instance and got stuck in the user setup process.
The setup worked fine for all things I could do in the UI. So currently there is one user and there are two organizations.
An “All Access API Token” exists for this user in each of the organizations.
The CLI command
influx org list -t TOKEN
works as expected: depending on the token I get one org or the other.
Now I’d like to create another user:
influx user create -n USERNAME -o ORGNAME -t TOKEN
Depending on which token I use in this command, I get either Error: no organization with name "ORGNAME" (for the wrong token) or Error: failed to create user "USERNAME": 401 Unauthorized: write:users is unauthorized (for the correct token).
It seems those tokens don’t have enough privileges to create new users.
Do I need to create some kind of “administrative token”?
What am I missing?