--- title: "Assigning roles using the CLI" slug: "assigning-roles-using-the-cli-1" tags: ["File Protect (FX)", "Malware Analysis (AX)", "IAM", "Email Security - Cloud", "Network Security (NX)", "Email Security — Server", "Central Management System", "Helix Enterprise", "Endpoint Security (HX)", "Product Usage", "Install and Get Started", "Helix", "Intelligent Virtual Execution "] updated: 2026-09-01T19:03:07Z published: 2026-09-01T19:03:07Z canonical: "docs.trellix.com/assigning-roles-using-the-cli-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Assigning roles using the CLI Use the CLI commands in this topic to change an existing user’s role. (If you are creating a new user, follow the instructions in [Creating a user account using the appliance CLI](/docs/creating-a-user-account-using-the-appliance-cli).) ### Important If you change a role while the user is logged in to the appliance, the user will be forcibly logged out. When the user logs in again, the capabilities associated with the new role are available to the user. Prerequisites - Admin access To assign a role to a user: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Assign a role to a user: ``` hostname (config) # username role ``` where` <role> `is one of the roles listed in [Roles for local user accounts](/docs/assigning-roles-for-local-user-accounts). 3. Save your changes: ``` hostname (config) # write memory ``` :