Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 404cef7

Browse files
committed
md edit
1 parent 0e8b89a commit 404cef7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/admin/users/sessions-tokens.md

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

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

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.
5558

56-
## CLI
59+
<div class="tabs">
5760

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
6062

6163
```sh
6264
coder tokens create my-token --user <username>
6365
```
6466

65-
See the full API reference for
67+
See the full CLI reference for
6668
[`coder tokens create`](../../reference/cli/tokens_create.md)
6769

68-
## API
70+
#### API
6971

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)
7474

7575
</div>
7676

0 commit comments

Comments
 (0)