Skip to main content

Assigning Menus

Last updated 12/06/2024

Menus can be assigned to a role. When a menu is assigned to a role, a user logging into your application with that role will be logged in under that menu and any children menus will also be available. Effectively, the top-level menu is removed. When a menu is assigned without any security table configured, no filtering will be applied. Permissions can still be applied to each of the data sources in the menu.

Lets take a look at an example. In the menu structure, Customers is the parent for Products.


Menu structure
Figure 1 - Menu structure

The Customer role has the Customers menu attached without any security table configuration.


Assign a menu to a role
Figure 2 - Assign a menu to a role

In the application, a user called Claire is assigned the Customer role. When she logs in with her credentials, she will log in at the Products level and will see all customers and their products. Effectively, the drill down from the parent menu has been removed.


Customer login
Figure 3 - Customer login

Assign a Menu to a Role

info
You will need to create your menu structure in the menus view that you want to assign to a user.

1. Click the Add Item button and give your role a name.

2. Select the menu in the Menu field.


Add a role
Figure 4 - Add a role

3. Add the permissions required to your data sources.

4. Click the Save button in the form app bar.


Save button
Figure 5 - Save button

info
To assign the role please refer to the documentaion on Add and Assign a role.