1.5 KiB
1.5 KiB
| title | seotitle | description | menu | weight | aliases | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Update a user | Update a user in InfluxDB | Update a user in InfluxDB using the InfluxDB UI or the influx CLI. |
|
103 |
|
Use the InfluxDB user interface (UI) or the influx command line interface (CLI)
to update a user.
Update a user in the InfluxDB UI
{{% note %}} User information cannot be updated in the InfluxDB UI. {{% /note %}}
Update a user using the influx CLI
Use the influx user update command
to update a user. Provide the following:
- An operator token using your
influxCLI connection configuration,INFLUX_TOKENenvironment variable, or the--token, -tflag. - The user ID (provided in the output of
influx user list) using the--id, -iflag. - The new username for the user using the
--name, -nflag.
Update the name of a user
{{% code-placeholders "USER_ID|NEW_USERNAME" %}}
influx user update \
--id USER_ID \
--name NEW_USERNAME
{{% /code-placeholders %}}
Replace the following:
- {{% code-placeholder-key %}}
USER_ID{{% /code-placeholder-key %}}: The ID of the user to update - {{% code-placeholder-key %}}
NEW_USERNAME{{% /code-placeholder-key %}}: The new username for the user