--- # Code generated by make gen. DO NOT EDIT. title: "`coder users edit-roles`" description: "Edit a user's roles by username or id." --- Edit a user's roles by username or id ## Usage ```console coder users edit-roles [flags] ``` ## 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 ``` ## Options ### -y, --yes | Property | Value | |----------|-------------------| | Type | bool | Bypass confirmation prompts. ### --roles | Property | Value | |----------|---------------------------| | Type | string-array | Replaces the user's full set of site roles with this list. Any existing role not included here is removed.