Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to remove/hide UI action on the related list for specific role user - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to remove/hide UI action on the related list for specific role user
KB0692571

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


6868 Views Last updated : Jan 3, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

Description


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.

Procedure


  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


All

Additional Information


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

https://docs.servicenow.com/csh?topicname=c_UIActions.html&version=latest


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.