How to restrict visibility of an icon link widget on portal

shaik_irfan
Tera Guru

Hi,

 

I have a icon link created on portal home page upon click it takes to some external url, which i want to make visible only for particular users. I have a user criteria and i want to display only for those users. can anyone please help me how to do this

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Irfan,

 

In that case, try placing the icon link in a widget & then you can have a criteria used for hiding/displaying widget. As widget's visibility can be hadled by user criteria as well.

 

Thanks,

Jaspal Singh

View solution in original post

12 REPLIES 12

Ct111
Giga Sage

Hello,

Check the below link

https://community.servicenow.com/community?id=community_question&sys_id=b31b49d6dbc4c414190dfb243996...

 

Mark my ANSWER as CORRECT and HELPFUL if it helps.

Hi,

 

thanks for the reply. But mine is not a role and i cant create a custom role just for this purpose as my manager ask me to avoid creating roles.

 

I need to display a icon link only for a particular location lets say like user.location.name == "North America"

 

 

Where i can add a script ?

Hello,

Check the code sample suggested by Goswami Sudipta in below link

https://community.servicenow.com/community?id=community_question&sys_id=d7c607a5db1cdbc01dcaf3231f96...

 

He implemented for user's business phone in same way you can do it for user's location , but do it with sys_id as location is reference field.

 

Mark my ANSWER as CORRECT and HELPFUL if it helpS.

Jaspal Singh
Mega Patron
Mega Patron

Hi Irfan,

 

In that case, try placing the icon link in a widget & then you can have a criteria used for hiding/displaying widget. As widget's visibility can be hadled by user criteria as well.

 

Thanks,

Jaspal Singh