# Create auth token for specific user with w/r authorization privileges

**URL:** <https://community.influxdata.com/t/create-auth-token-for-specific-user-with-w-r-authorization-privileges/20395>\
**Category:** Systems\
**Created:** [June 16, 2021, 12:39pm UTC](https://community.influxdata.com/t/create-auth-token-for-specific-user-with-w-r-authorization-privileges/20395 "2021-06-16T12:39:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scTHU](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@scTHU](https://community.influxdata.com/u/scTHU)\
**Post date:** [June 16, 2021, 12:39pm UTC](https://community.influxdata.com/t/create-auth-token-for-specific-user-with-w-r-authorization-privileges/20395/1 "2021-06-16T12:39:24Z")

</div>

Dear friends,

I’m using docker compose to setup an influxDB instance for our research group. Now there is the root-admin account and also some other users defined by me.  
Now only the admin accounts has it’s all access token, all new tokens generated in the web-interfaces will belong the user “admin”, so I moved to the docker terminal and tried to generate token with CLI for other users.  
Well I did generate user specific tokens with this CLI command:  
influx auth create --user [username] -d [description] -o [org] --read-buckets --write-buckets --read-dashboards --write-dashboards --read-orgs --write-orgs --read-tasks --write-tasks --read-telegrafs --write-telegrafs --read-user --write-user --read-notificationRules --write-notificationRules --read-notificationEndpoints --write-notificationEndpoints --read-checks --write-checks --read-dbrps --write-dbrps

it contains all privileges provided by the influx CLI, the tokens worked fine basically. But one problem is that the supported flags do not include “–write-authorizations” and “–read-authorizations”, which means that user is allowd to access the data of our organization, but is not allowed to create R/W tokens for his buckets with his own user account.

This is really annoying as “admin” is the only user who is the owner of valid tokens with the authorization priviledges. Is there a way to create a token for a user which also grants him the auth priviledge? Or is there a workaround to change the token ownship from “admin” to another “user”?

many thanks,  
sc

 ![influx token](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/2/262adca73e40455db3e139196571d1c081da51ed.png)

---

<div class="post-metadata">

**Author:** ![scTHU](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@scTHU](https://community.influxdata.com/u/scTHU)\
**Post date:** [June 21, 2021, 3:21pm UTC](https://community.influxdata.com/t/create-auth-token-for-specific-user-with-w-r-authorization-privileges/20395/2 "2021-06-21T15:21:25Z")

</div>

does anybody have the same problem?

---

<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:** [June 21, 2021, 7:51pm UTC](https://community.influxdata.com/t/create-auth-token-for-specific-user-with-w-r-authorization-privileges/20395/3 "2021-06-21T19:51:52Z")

</div>

Hello @scTHU,  
This is a known issue and is currently being worked on.  
Thanks 🙂
