Secure a menu item or menu

Menu items and menus are secured on company level. Note: As of release 5 of ASW, menus are secured in the same way as a menu item. Use menu items M_XXXXX. Menu items to secure can be found by viewing menu options from the MEDEA menu.

The process of securing a menu item is similar to the instructions described for securing an application, except that you select another authority group.

The following describes the procedure of securing a menu item. This can be done via the Work with authority groups menu item or via MEDEA (if the *MNUITEM authority group is activated). Both procedures are described below. Click to expand each section.

Securing via the Work with authority groups menu item

  1. Select the Work with authority groups menu item.
  2. On the initial panel, highlight the *MNUITEM authority group and click Change.
  3. On the detail panel, complete the following fields:
  4. Active group
    Set to YES to activate the group for authority control.
    Default value
    The default value is the value the system returns. Valid entries are:
    Code Description
    0 No authority check will be done if a user accesses an object within the group.
    1 An authority check will be done if any user accesses an object from the group. Default value 1 means that everybody has access to the object.
    2 An authority check will be done if any user accesses an object from the group. Default value 2 means that nobody has access to the object.
    3 This default value is used when you are using this table to perform an authority check on AS/400 – iSeries objects. The authority group must be equal to the AS/400 – iSeries object type and as authority routine you must have AS400.

    Click OK to update.

  5. You return to the initial panel. Highlight the *MNUITEM authority group and click Routines.
  6. You access Work with authority groups, Routines. Click Add.
  7. On the detail panel, complete the Routine field. The routine is an identifier between the Object control program and the function that will be secured. Click OK twice and then Back.
  8. You return to the initial panel. Highlight the *MNUITEM authority group and click Objects.
  9. You access Work with authority groups, Objects. Complete the fields as desired and click OK to update and then Back.
  10. You return to the initial panel. Highlight the *MNUITEM authority group and click Objects/Routines/Users to define object authority per routine and user.
  11. You access Work with authority groups, Objects/Routines/Users. Click Add.
  12. On the detail panel, complete the fields as desired and click OK. The menu item is now secured. When the user tries to access the secured menu item the following message will be displayed: You are not allowed to access this menu item, authority control is active.

Securing via MEDEA

It is possible to access Work with authority groups from MEDEA. Securing a menu item from MEDEA requires that authority control has been activated for authority group *MNUITM (as described in step 3 above).

  1. Select the Work with menu items menu item.
  2. On the initial panel, select the menu item you want to secure and click Authority.
  3. You access Work with authority groups, Objects. Click the Object details function key.
  4. You access Work with authority groups, Object details. Complete the fields according to your needs.

Application and menu item security combined
If an application is secured you can grant authority to a single menu item by using the procedure described above. Instead of setting the Authority field to NO on the Work with authority groups, Object details panel, you would set it to YES.

Related topics