How to remove/hide UI action on the related list for specific role user

For Example:

Remove/Hide right click "Approve" option (List context menu option) for the users with "itil" role on the table "Requested Item(sc_req_item)".


As shown in the image above, we want to remove/hide the "Approve" option for the itil users.


  1. Navigate to the sc_req_item.LIST (table on which the user can perform "approve" UI action)
  2. Notice that the List contect menu UI action "Approve" belongs to the table "sysapproval_approver"
  3. Navigate to UI action and apply filters: table is "sysapproval_approver" AND List Contest Menu is "True"
  4. Open the UI action with Name "Approve" and change the condition to "!gs.hasRole('itil')" to restrict this Ui action from users with itil role

By following the above steps, we are modifying the UI action condition to make it visible to only the users with the required roles.

Applicable Versions


Additional Information

To learn more about the UI actions, please refer the below document:

Article Information

Last Updated:2019-08-02 21:09:43