Current Status Filter

Yahav Mor
Tera Contributor

Hi,
I have on my portal outage's that everyone on the portal can see.
I want to make the outage available to see only if i am on a specific group
Thank you all

YahavMor_0-1731585190964.png

 

YahavMor_1-1731585206737.pngYahavMor_2-1731585227685.png

 

4 REPLIES 4

adityapatha
ServiceNow Employee
ServiceNow Employee

Hi Yahav,

Go to the widget instance record for your widget and in the related list you will find the Can View and Cannot View user criteria.

To open the widget instance directly from the portal page, ctrl+click (or ctrl+ right click) on your widget and select 'Instance in Page Editor'.

The group field is change from outage to outage 
I can do in the server script the filter?

Yes, select the advanced checkbox on the user criteria record to right your script. 

If you are wanting the widget to show only for the groups associated with the services that are currently experiencing an outage, gliderecord to the outage table, get all the ongoing outages, get their groups. Then, if the user belongs to any of the groups, return 'answer=true' and 'answer=false' if not.

This is not work