2019-01-23 18:58:50 +00:00
|
|
|
---
|
|
|
|
title: Update a user
|
|
|
|
seotitle: Update a user in InfluxDB
|
2019-01-23 19:30:19 +00:00
|
|
|
description: Update a user in InfluxDB using the InfluxDB UI or the influx CLI.
|
2019-01-23 18:58:50 +00:00
|
|
|
menu:
|
2020-07-28 22:34:16 +00:00
|
|
|
influxdb_2_0:
|
2019-01-23 18:58:50 +00:00
|
|
|
name: Update a user
|
|
|
|
parent: Manage users
|
2019-02-06 17:48:09 +00:00
|
|
|
weight: 103
|
2020-07-28 21:59:56 +00:00
|
|
|
aliases:
|
|
|
|
- /v2.0/users/update-user/
|
2020-04-22 20:29:20 +00:00
|
|
|
products: [oss]
|
2019-01-23 18:58:50 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
Use the InfluxDB user interface (UI) or the `influx` command line interface (CLI)
|
|
|
|
to update a user.
|
|
|
|
|
|
|
|
## Update a user in the InfluxDB UI
|
|
|
|
|
2019-01-23 19:46:14 +00:00
|
|
|
{{% note %}}
|
2019-12-30 21:27:18 +00:00
|
|
|
User information cannot be updated in the InfluxDB UI.
|
2019-01-23 19:46:14 +00:00
|
|
|
{{% /note %}}
|
2019-01-23 18:58:50 +00:00
|
|
|
|
|
|
|
## Update a user using the influx CLI
|
|
|
|
|
2019-01-23 19:30:19 +00:00
|
|
|
Use the [`influx user update` command](/v2.0/reference/cli/influx/user/update)
|
2019-01-23 19:07:43 +00:00
|
|
|
to update a user. Updating a user requires the following:
|
|
|
|
|
2020-02-11 15:29:35 +00:00
|
|
|
- The user ID _(provided in the output of `influx user list`)_
|
2019-01-23 19:07:43 +00:00
|
|
|
|
|
|
|
##### Update the name of a user
|
|
|
|
```sh
|
2020-01-15 22:42:49 +00:00
|
|
|
# Syntax
|
2019-01-23 19:07:43 +00:00
|
|
|
influx user update -i <user-id> -n <new-username>
|
|
|
|
|
|
|
|
# Example
|
|
|
|
influx user update -i 034ad714fdd6f000 -n janedoe
|
|
|
|
```
|