Skip to content

tokens: coder tokens ls is confusing for owners #6214

@bpmct

Description

@bpmct

Continuing #5935: When an Coder admin (owner) runs coder tokens ls, they see a list of all users' tokens. However, I find this experience quite jarring:

  • The expected behavior for most CLIs will only list the user's API tokens, not all users' API tokens
  • There is no way to tell which user owns each token

I'd like to suggest the following behavior:

  • By default, only show the user's tokens on coder tokens ls (and the web view, if appropriate)
  • Add coder tokens ls -all to show all users' tokens (we have this for workspaces)
  • Add an "owner" column to show who created/owns the token. Perhaps this only shows up with coder tokens ls --all

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions