Documentation

Create a user

Use the influx command line interface (CLI) to create a user.

Additional users cannot be created in the InfluxDB UI.

To create a new user, you must have an operator token. For more information, see how to create an operator token. Use the influx user create command and include the following:

  • Username
  • Organization name or organization ID to add the user to (provided in the output of influx org list)

Authentication credentials

The examples below assume your InfluxDB host, organization, and token are provided by either the active influx CLI configuration or by environment variables (INFLUX_HOST, INFLUX_ORG, and INFLUX_TOKEN). If you do not have a CLI configuration set up or the environment variables set, include these required credentials for each command with the following flags:

  • --host: InfluxDB host
  • -o, --org or --org-id: InfluxDB organization name or ID
  • -t, --token: InfluxDB API token
# Syntax
influx user create -n <username> -o <org-name>

# Example
influx user create -n johndoe -o example-org

Create a user with a password and organization

To create a new user with a password and add the user as a member of an organization, include a password and organization ID with the influx user create command.

  • Username
  • Organization name or organization ID to add the user to (provided in the output of influx org list)
  • Password
# Syntax
influx user create -n <username> -p <password> -o <org-name>

# Example
influx user create -n johndoe -p PaSsWoRd -o example-org

Was this page helpful?

Thank you for your feedback!


Set your InfluxDB URL

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.