Skip to content

Commit 5c4ec96

Browse files
committed
Update session-tokens docs for token creation
1 parent aaa1223 commit 5c4ec96

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/admin/users/sessions-tokens.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,15 @@ See the help docs for
5151

5252
### Generate a long-lived API token on behalf of another user
5353

54-
Today, you must use the REST API to generate a token on behalf of another user.
55-
You must have the `Owner` role to do this. Use our API reference for more
56-
information:
57-
[Create token API key](https://coder.com/docs/reference/api/users#create-token-api-key)
54+
As of Coder v2.17+, you can create long-lived tokens on behalf of other users if
55+
your account is `Owner`. Use the following command:
56+
57+
```sh
58+
coder tokens create my-token --user <username>
59+
```
60+
61+
> See the full API reference for
62+
> [`coder tokens create`](../../reference/cli/tokens_create.md)
5863
5964
### Set max token length
6065

0 commit comments

Comments
 (0)