Closed
Description
An Owner account should be able to create a token on behalf of another user in the CLI. Right now, you can only do it in the API: https://coder.com/docs/v2/latest/api/users#create-token-api-key
Desired state (example, doesn't have to be this flag/wording):
➜ ~ coder tokens create --help
coder v2.10.0+a7234f6
USAGE:
coder tokens create [flags]
Create a token
OPTIONS:
--lifetime duration, $CODER_TOKEN_LIFETIME (default: 720h0m0s)
Specify a duration for the lifetime of the token.
-n, --name string, $CODER_TOKEN_NAME
Specify a human-readable name.
+ -u, --user string, $CODER_TOKEN_USER
+ Create the token on behalf of another user (Admin only)
———
Run `coder --help` for a list of global options.
Activity
Philip-21 commentedon May 24, 2024
Hello @bpmct i would like to take on this issue and get started with things.
matifali commentedon Jul 8, 2024
related to #10246
feat: implement feature to create a token on behalf of another user i…
SasSwart commentedon Oct 14, 2024
Hey @joobisb! You seem to have merged a Pull request that addresses this issue. Is there still anything to do, or can it be closed?
matifali commentedon Oct 14, 2024
@SasSwart we can close this as completed.
@joobisb for future references please use the words as described in: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
These words automatically link the issue and PR and close the issue when PR gets merged.
1 remaining item