--- title: "Defining authorization rules using the CLI" slug: "defining-authorization-rules-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:12Z published: 2026-09-01T19:03:12Z canonical: "docs.trellix.com/defining-authorization-rules-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. # Defining authorization rules using the CLI Use the commands in this topic to define an authorization rule. To define an authorization rule: 1. Log in to the Central Management System CLI. 2. Go to CLI configuration mode: ``` cm-hostname > enable cm-hostname # configure terminal ``` 3. Define the rule: ``` cm-hostname (config) # aaa authorization access-groups rules rule [...] grant-access-group [comment""] ``` where: - `position option `specifies the position of the rule in the list. For a description of the possible values, see [Rule management options](/docs/defining-rules). - `match option ` specifies the authorization criteria to match. For a description of the possible values, see [Authorization rule options](/docs/defining-rules). - `access group name `specifies the name of the access group. - `comment `is an optional comment. Enclose the comment in double quotation marks if it includes more than one word. 4. Verify your change: ``` cm-hostname (config) # show aaa authorization access-group rules ``` 5. Save your change: ``` cm-hostname (config) # write memory ``` ### Example The following example creates a rule that grants users in the infosec LDAP group access to the alerts defined for the nx-alerts access group. ``` cm-05 (config) # aaa authorization access-groups rules rule append tail match-ldap-group infosec grant-access-group nx-alerts ``` ``` cm-05 (config) # show aaa authorization access-groups rules #      AAA Authorization Access-groups Rules : Enabled ----------------------------------------------------------- # Rule        Statements ----------------------------------------------------------- # 1           Match LDAP Group                 : infosec               Grant Access Groups              : nx-alerts ``` ### Note For an examples of a fully configured access group, see [Example: configuring an access groups for alerts](/docs/example-configuring-an-access-group-for-alerts). :