File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -51,26 +51,26 @@ See the help docs for
51
51
52
52
### Generate a long-lived API token on behalf of another user
53
53
54
- <div class =" tabs " >
54
+ You must have the ` Owner ` role to generate a token for another user.
55
+
56
+ As of Coder v2.17+, you can use the CLI or API to create long-lived tokens on
57
+ behalf of other users. Use the API for earlier versions of Coder.
55
58
56
- ## CLI
59
+ < div class = " tabs " >
57
60
58
- As of Coder v2.17+, you can create long-lived tokens on behalf of other users if
59
- your account is ` Owner ` . Use the following command:
61
+ #### CLI
60
62
61
63
``` sh
62
64
coder tokens create my-token --user < username>
63
65
```
64
66
65
- See the full API reference for
67
+ See the full CLI reference for
66
68
[ ` coder tokens create ` ] ( ../../reference/cli/tokens_create.md )
67
69
68
- ## API
70
+ #### API
69
71
70
- You can also use the REST API to generate a token on behalf of another user. You
71
- must have the ` Owner ` role to do this. Use our API reference for more
72
- information:
73
- [ Create token API key] ( https://coder.com/docs/reference/api/users#create-token-api-key )
72
+ Use our API reference for more information on how to
73
+ [ create token API key] ( ../../reference/api/users.md#create-token-api-key )
74
74
75
75
</div >
76
76
You can’t perform that action at this time.
0 commit comments