feat: add edit-role within user command (#17341)

This commit is contained in:
brettkolodny
2025-04-15 18:30:20 -04:00
committed by GitHub
parent 57ddb3c615
commit 70b113de7b
8 changed files with 223 additions and 17 deletions
+10 -9
View File
@@ -8,15 +8,16 @@ USAGE:
Aliases: user
SUBCOMMANDS:
activate Update a user's status to 'active'. Active users can fully
interact with the platform
create
delete Delete a user by username or user_id.
list
show Show a single user. Use 'me' to indicate the currently
authenticated user.
suspend Update a user's status to 'suspended'. A suspended user cannot
log into the platform
activate Update a user's status to 'active'. Active users can fully
interact with the platform
create
delete Delete a user by username or user_id.
edit-roles Edit a user's roles by username or id
list
show Show a single user. Use 'me' to indicate the currently
authenticated user.
suspend Update a user's status to 'suspended'. A suspended user cannot
log into the platform
———
Run `coder --help` for a list of global options.
+18
View File
@@ -0,0 +1,18 @@
coder v0.0.0-devel
USAGE:
coder users edit-roles [flags] <username|user_id>
Edit a user's roles by username or id
OPTIONS:
--roles string-array
A list of roles to give to the user. This removes any existing roles
the user may have. The available roles are: auditor, member, owner,
template-admin, user-admin.
-y, --yes bool
Bypass prompts.
———
Run `coder --help` for a list of global options.