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.
'My Approvals' widget in the Service Portal allows users without the 'approve_user' role to action approvals - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • 'My Approvals' widget in the Service Portal allows users without the 'approve_user' role to action approvals
KB0678051

'My Approvals' widget in the Service Portal allows users without the 'approve_user' role to action approvals


13432 Views Last updated : Oct 3, 2023 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Description

The 'My Approvals' widget in the Service Portal allows users without the 'approve_user' role to action approvals.

The default 'My Approvals' application menu in the regular native platform does check the role and allows only users with the 'approve_user' role access to the 'My Approvals' module.

Steps to Reproduce

The out-of-box 'My Approvals' application module "sys_app_module.do?sys_id=e0f011dbff02110053ccffffffffff9b" checks the 'approve_user' role.

The out-of-box 'Approvals' sp_widget "sp_widget.do?sys_id=f37aa302cb70020000f8d856634c9cfc" does not check the user role.

As a result, in the Service Portal, any no-role user can click on approve or reject buttons to interact with approvals directly on the instance.

Workaround

Modify the Condition field of the SP Menu Item for Approvals (with a url similar to the one below) from the existing value of the condition to add the needed roles to the condition so that Approvals are available to users from the Service Portal:

https://<instance_name>.service-now.com/nav_to.do?uri=sp_rectangle_menu_item.do?sys_id=864aed00d7200200a9ad1e173e24d475 

In the native platform, the 'My Approvals' module is configured to allow ITIL or approver_user roles. 

Similar changes would be needed to the condition field of the SP Menu Item for Approvals.

For example, assuming the condition currently has a value of 'gs.isLoggedIn()', it would need to be modified to 'gs.isLoggedIn() && (gs.hasRole("approver_user") || gs.hasRole("itil"))' if users with the ITIL role or approver_user role need to have access to Approvals on the Service Portal.


Related Problem: PRB751143

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.