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

Thank you shruthiub, I am close to the desired effect.  How can I remove the first widget on the place and replace with that one? I have added the new widget to the same box, set the Can View to the group and the other widget Cannot view to the group but still not working.  

 

Community Alums
Not applicable

You can just remove the old widget from the page through page designer.

 

Is the new widget visible/hidden as per the new Can View User Criteria? If not, can u post screenshots to understand the issue?

As seen in the screenshot they are both there now, the desired outcome is to dynamically remove A when the groups to the portal that can view B.  Otherwise show A to all.  Always maintaining three widgets across the row. find_real_file.png

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

Community Alums
Not applicable

Hello,@WillyWally  Did you manage to Control the widget visibility based on the steps above? Kindly mark my comment as correct/helpful if it has helped you in resolving your query. Thank you:)