---
title: Update a user
description: Update a user in InfluxDB using the InfluxDB UI or the influx CLI.
url: https://docs.influxdata.com/influxdb/v2/admin/users/update-user/
estimated_tokens: 395
product: InfluxDB OSS v2
version: v2
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb/v2/admin/users/update-user/
date: '2026-05-15T15:46:14-06:00'
lastmod: '2026-05-15T15:46:14-06:00'
---

This page documents an earlier version of InfluxDB OSS.[InfluxDB 3 Core](/influxdb3/core/) is the latest stable version.

#### API token hashing is enabled by default in InfluxDB OSS 2.9.0

Stronger token security: tokens are stored as hashes on disk, so a
copy of the database file doesn’t expose usable tokens. Existing
tokens are hashed on first startup and the original strings can’t
be recovered afterward — **capture any plaintext tokens you still
need before you upgrade**.

For more information, see [Token hashing](/influxdb/v2/admin/tokens/#token-hashing).

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.

## Update a user using the influx CLI

Use the [`influx user update` command](/influxdb/v2/reference/cli/influx/user/update)to update a user. Provide the following:

* An [operator token](/influxdb/v2/admin/tokens/#operator-token) using your[`influx` CLI connection configuration](/influxdb/v2/reference/cli/influx/#provide-required-authentication-credentials),`INFLUX_TOKEN` environment variable, or the `--token, -t` flag.
* The user ID *(provided in the output of `influx user list`)* using the `--id, -i` flag.
* The new username for the user using the `--name, -n` flag.

##### Update the name of a user

```sh
influx user update \
  --id USER_ID \
  --name NEW_USERNAME
```

Replace the following:

* `USER_ID`:
  The ID of the user to update
* `NEW_USERNAME`:
  The new username for the user
