# Operator token post upgrade

**URL:** <https://community.influxdata.com/t/operator-token-post-upgrade/56151>\
**Category:** InfluxDB 2\
**Tags:** influxdb\
**Created:** [January 28, 2025, 1:47pm UTC](https://community.influxdata.com/t/operator-token-post-upgrade/56151 "2025-01-28T13:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![buzzlightyear](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@buzzlightyear](https://community.influxdata.com/u/buzzlightyear)\
**Post date:** [January 28, 2025, 1:47pm UTC](https://community.influxdata.com/t/operator-token-post-upgrade/56151/1 "2025-01-28T13:47:33Z")

</div>

I’ve just practiced upgrading from influxdb 1.8 to 2.7 on a rocky linux vm.

I wanted to create new users for which I’d need the operator token, which was not previously listed, so I executed influx auth create --org --operator to generate a token, which it did.

The documentation at [Create an API token in InfluxDB | InfluxDB OSS v2 Documentation](https://docs.influxdata.com/influxdb/v2/admin/tokens/create-token/#create-an-operator-token) says:

> To [view or create an operator token](https://docs.influxdata.com/influxdb/v2/admin/tokens/create-token/) with the InfluxDB UI, `api/v2` API, or `influx` CLI after the setup process is completed, you must use an existing operator token.

I was able to execute the command a 2nd time, and again got a token. How does influxdb determine that the setup process is completed so it does not generate a new token without me supplying a token? Is the documentation outdated, or is my understanding wrong?

---

<div class="post-metadata">

**Author:** ![buzzlightyear](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@buzzlightyear](https://community.influxdata.com/u/buzzlightyear)\
**Post date:** [January 28, 2025, 1:59pm UTC](https://community.influxdata.com/t/operator-token-post-upgrade/56151/2 "2025-01-28T13:59:54Z")

</div>

To answer my own question: it looks like influxdb puts the operator token into ~/.influxdbv2/configs upon creation that’s why it appears to be working for me.

Can anyone please confirm?

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [January 28, 2025, 7:19pm UTC](https://community.influxdata.com/t/operator-token-post-upgrade/56151/3 "2025-01-28T19:19:10Z")

</div>

Hello @buzzlightyear,  
yes it creates one upon creation. You’re correctly
