Description
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