How make a Service Portal widget only show up for a certain group of users

WillyWally
Kilo Contributor

We have a request to swap out a widget on the Service Portal home page with a specific widget based on group permissions.  We have several Record Producers in a category and we created a widget that points directly to the category.  The Record Producers have the ACL inlace based on groups and we need to extend that to the home page, removing the first widget and placing the newly created one in it's place for these specific group(s).  I have read on on scripting which I believe is the route we need to go but I am a novice at best on scripting nd would appreciate any assistance. 

 

Thank you and stay safe

Jay

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi,

I was able to achieve this on my PDI. Can you try as below-

 

1. Create user criteria for the group of users who should see the 2nd widget

find_real_file.png

 

2. In the instance of the 1st widget, add this user criteria under 'Cannot view'

find_real_file.png

3. In the instance of the 2nd widget, add this user criteria under 'Can View'

find_real_file.png

4. In the page, I have place both the widgets below each other

find_real_file.png

 

5. When a user from 'Test Group 1' sees the portal-

find_real_file.png

6. When any other user sees who is not part of the 'Test Group 1' group-

 

find_real_file.png

View solution in original post

10 REPLIES 10

sachin_namjoshi
Kilo Patron
Kilo Patron

You can apply user criteria to service portal widget using below to achieve your requirement.

 

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/build/service-portal/task/widget...

 

Regards,

Sachin

 

 

Community Alums
Not applicable

1. Either have a unique roles assigned to a group and add the bunch of users to this new group and add the new role to the Widget roles:

find_real_file.png

 

2. Or you can use the Can View/Cannot View user criteria on the widget instance

 

find_real_file.png

I am not seeing those tabs at the bottom of my widget instance.  

 

find_real_file.png

Community Alums
Not applicable

1. Check if the plugin "com.glide.service-portal.user-criteria" is installed. Only if this plugin is installed you can see those Tabs

find_real_file.png

 

2. If the plugin is installed, ensure the property 'glide.service_portal.user_criteria_enabled' is set to 'true'

find_real_file.png

 

3. If the above two checks are confirmed, ensure the tabs are added to the form- Right click on the form header> Configure > Related Lists > Add 'Can View' and 'Cannot view' related lists and Save

find_real_file.png