write:users is unauthorized
Hi, I have a influxDB2.1 (InfluxDB 2.1.1Server: 657e183Frontend: cc65325) and the latest influxCLI 2.2.1. When I create a user with the CLI I get 'write:users is unauthorized' despite using a config with root permissions.
influx user create --name username --password 5ZZ3jTTSmIIr8r5l --org Hexagram Error: failed to create user "username": 401 Unauthorized: write:users is unauthorized
What can I do? Any other way to create a user?
Best, Stan
When you say using a config with root permissions, are you using an operator token? Only an operator token can create a user. An all-access token can't, and you'd get that error with an all-access token.
You might try with the --http-debug flag as well to verify that the token you think you are using is being passed in the authorization header to rule out any problems with an incorrect config.