Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to hide a widget for particular roles in Service Portal

Susmitha1625
Tera Guru

Hello Developers,

 

Please help me achieve this requirement, We want to hide a widget to non-itil user roles on the Service Portal. We've added a user criteria to the widget in the backend (it's hiding the data) but, the widget is still appearing on the Portal. I basically want to hide the widget if the user doesn't have itil role. I tried to install 'Service Portal User Criteria Support' plugin to follow the steps from 'https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/build/service-portal/task/widge... but the Related list doesn't appear for me as mentioned in the link. Kindly help. TIA

 

Adding an example widget to remove

 

Susmitha1625_0-1701329292144.png

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Susmitha1625 ,

The related list should appear !!

Before you begin

Activate the Service Portal User Criteria Support (com.glide.service-portal.user-criteria) plugin and set the glide.service_portal.user_criteria_enabled system property to true.

Role required: admin or sp_admin

About this task

You can apply several user criteria records to a single portal item.

Procedure

  1. In the Service Portal Configuration page (Service Portal > Service Portal Configuration), open the Page Editor.
  2. Select a page from the list.
  3. Select a page, widget, or widget instance node from the page tree.
  4. Under related lists, click Who Can View or Who Cannot View.
  5. Click New.
  6. Select a criteria from the Can View or Cannot View list.

    Selecting criteria from the Can View or Cannot View list applies user criteria records created in Create a user criteria record for Service Portal to the selected page, widget, or widget instance.

  7. Click Save.

 

View solution in original post

2 REPLIES 2

Community Alums
Not applicable

Hi @Susmitha1625 ,

The related list should appear !!

Before you begin

Activate the Service Portal User Criteria Support (com.glide.service-portal.user-criteria) plugin and set the glide.service_portal.user_criteria_enabled system property to true.

Role required: admin or sp_admin

About this task

You can apply several user criteria records to a single portal item.

Procedure

  1. In the Service Portal Configuration page (Service Portal > Service Portal Configuration), open the Page Editor.
  2. Select a page from the list.
  3. Select a page, widget, or widget instance node from the page tree.
  4. Under related lists, click Who Can View or Who Cannot View.
  5. Click New.
  6. Select a criteria from the Can View or Cannot View list.

    Selecting criteria from the Can View or Cannot View list applies user criteria records created in Create a user criteria record for Service Portal to the selected page, widget, or widget instance.

  7. Click Save.

 

Susmitha1625
Tera Guru

@Community Alums  Thank You so much, It helped me. I didn't know to change the property.