2026-08-11 11:22:55 -04:00
|
|
|
---
|
|
|
|
|
# Code generated by make gen. DO NOT EDIT.
|
|
|
|
|
title: users edit-roles
|
|
|
|
|
description: "Edit a user's roles by username or id"
|
|
|
|
|
---
|
|
|
|
|
|
2025-04-15 18:30:20 -04:00
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
|
|
|
|
|
|
Edit a user's roles by username or id
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
coder users edit-roles [flags] <username|user_id>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
|
|
|
|
|
### -y, --yes
|
|
|
|
|
|
|
|
|
|
| | |
|
|
|
|
|
|------|-------------------|
|
|
|
|
|
| Type | <code>bool</code> |
|
|
|
|
|
|
2026-01-16 18:04:57 -08:00
|
|
|
Bypass confirmation prompts.
|
2025-04-15 18:30:20 -04:00
|
|
|
|
|
|
|
|
### --roles
|
|
|
|
|
|
|
|
|
|
| | |
|
|
|
|
|
|------|---------------------------|
|
|
|
|
|
| Type | <code>string-array</code> |
|
|
|
|
|
|
2025-05-22 19:48:23 +10:00
|
|
|
A list of roles to give to the user. This removes any existing roles the user may have.
|