influx user create \
-n user \
-p “password123” \
--org “orginisation” \
--org-id <org-id> \
-t <admin_secret_token>
Please note that both the Password and the org have to be inside quotes.
Note: If I dont put password inside quotes it throws Error password too short (it matters not the length of pwd that is assigned at this point whether in or out of quotes) and likewise with the org it does not recognise the orginisation
Then once I have done this I need to then change the password for the user doing the following:
influx user password -n user -t <admin_secret_token>
This is due to when at the first step I am having to put the password inside quotes for the system to take the new user and apply a password to the user but the system not recognising the password due to it being in quotes at initial creation.
org and org-id are mutually exclusive. The soon-to-be-release 2.4 CLI will throw an error if you try to pass both. I’m not sure what exactly the command does in 2.3 if you pass both.
The command you shared uses curly quotes. It should use straight quotes (could just be copy-paste-format error)
You have to use the operator token (the token created for you when you set up the InfluxDB instance). You may be already, just wanted to make sure.
influx user create \
-n user \
-p "password123" \
--org "organization" \
-t <operator_token>
Ok, this command worked. You don’t have to do a multiline command. The docs just show multiline for readability. I’m not sure why the chevrons are needed. What shell are you using? Is it just straight bash?