mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
be1c06dec9
- Adds a new API endpoint `GET /api/v2/users/oidc-claims` that returns only the **merged claims** (not the separate id_token/userinfo breakdown). Scoped exclusively to the authenticated user's own identity — no user parameter, so users cannot view each other's claims. - Adds a new CLI command:** `coder users oidc-claims` that hits the above endpoint. - The existing owner-only debug endpoint is preserved unchanged for admins who need the full claim breakdown. > 🤖 This PR was created with the help of Coder Agents, and will be reviewed by my human. 🧑💻
28 lines
1.5 KiB
Markdown
Generated
28 lines
1.5 KiB
Markdown
Generated
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
# users
|
|
|
|
Manage users
|
|
|
|
Aliases:
|
|
|
|
* user
|
|
|
|
## Usage
|
|
|
|
```console
|
|
coder users [subcommand]
|
|
```
|
|
|
|
## Subcommands
|
|
|
|
| Name | Purpose |
|
|
|----------------------------------------------------|---------------------------------------------------------------------------------------|
|
|
| [<code>create</code>](./users_create.md) | Create a new user. |
|
|
| [<code>list</code>](./users_list.md) | Prints the list of users. |
|
|
| [<code>show</code>](./users_show.md) | Show a single user. Use 'me' to indicate the currently authenticated user. |
|
|
| [<code>delete</code>](./users_delete.md) | Delete a user by username or user_id. |
|
|
| [<code>edit-roles</code>](./users_edit-roles.md) | Edit a user's roles by username or id |
|
|
| [<code>oidc-claims</code>](./users_oidc-claims.md) | Display the OIDC claims for the authenticated user. |
|
|
| [<code>activate</code>](./users_activate.md) | Update a user's status to 'active'. Active users can fully interact with the platform |
|
|
| [<code>suspend</code>](./users_suspend.md) | Update a user's status to 'suspended'. A suspended user cannot log into the platform |
|