2026-08-11 11:22:55 -04:00
|
|
|
---
|
|
|
|
|
# Code generated by make gen. DO NOT EDIT.
|
2026-09-28 15:44:10 -04:00
|
|
|
title: "`coder users edit-roles`"
|
2026-08-11 11:22:55 -04:00
|
|
|
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>
|
|
|
|
|
```
|
|
|
|
|
|
2026-09-30 12:36:30 -04:00
|
|
|
## Description
|
|
|
|
|
|
|
|
|
|
```console
|
|
|
|
|
- --roles replaces the user's full set of site roles; any role not listed is
|
|
|
|
|
removed:
|
|
|
|
|
|
|
|
|
|
$ coder users edit-roles example_user --roles owner user-admin
|
|
|
|
|
```
|
|
|
|
|
|
2025-04-15 18:30:20 -04:00
|
|
|
## 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> |
|
|
|
|
|
|
2026-09-30 12:36:30 -04:00
|
|
|
Replaces the user's full set of site roles with this list. Any existing role not included here is removed.
|