--- title: "Custom access rule for main menu item" slug: "custom-access-rule-for-main-menu-item" tags: ["Totara Platform", "Site Administrator", "How-to"] updated: 2026-08-13T16:01:06Z published: 2026-08-13T16:01:06Z canonical: "totara.help/custom-access-rule-for-main-menu-item" --- > ## Documentation Index > Fetch the complete documentation index at: https://totara.help/llms.txt > Use this file to discover all available pages before exploring further. # Custom access rule for main menu item When [adding](/totara-20/docs/add-a-main-menu-item) or [editing](/totara-20/docs/edit-main-menu-items) a main menu item you can choose to set up a custom access rule. This allows you to control access to a main menu item based on role, audience, or one of the preset rules. To set up a custom access rule, follow these steps: 1. Go to *Quick-access menu > Navigation > Main menu.* 2. Click the cog icon (![](https://cdn.document360.io/a007399b-031e-436b-999a-528240e16f58/Images/Documentation/cog.png?sv=2026-02-06&spr=https&st=2026-11-01T18%3A25%3A17Z&se=2026-11-01T19%3A25%3A17Z&sr=c&sp=r&sig=SwfIDF04g7me7%2B%2B97eNngHi6UqoSu%2F3s6G1Fa899%2FnY%3D)) next to the item you wish to edit. 3. Select **Use custom access rules** under **Visibility.** 4. Click **Save changes**. 5. Select the **Access** tab to define the access rule. 6. Select whether **all** or **any** of the **Restrict access** criteria need to be met to view the navigation item. 7. Fill in the criteria for the role, audience, and/or preset rule. 8. Click **Save changes**. ## Next steps - [Main menu custom access rule settings](/totara-20/docs/main-menu-custom-access-rule-settings) - [Main menu settings](/totara-20/docs/main-menu-settings) - [Edit main menu items](/totara-20/docs/edit-main-menu-items) - [Reorder main menu items](/totara-20/docs/re-order-main-menu-items) - [Custom access rule for main menu item](/totara-20/docs/custom-access-rule-for-main-menu-item) - [Hide main menu items](/totara-20/docs/hide-main-menu-items) - [Add a main menu item](/totara-20/docs/add-a-main-menu-item) - [Delete a main menu item](/totara-20/docs/delete-a-main-menu-item) - [Reset main menu](/totara-20/docs/reset-main-menu) Join the [Totara Community](https://totara.community/) for more resources to help you get the most out of Totara. © Copyright 2025 Totara Learning Solutions. All rights reserved. Some content originally obtained via [GPLv3 license](https://www.gnu.org/licenses/licenses.html#GPL) and continues to be available under GPLv3. All other content is the sole copyright of Totara Learning Solutions.