how to restrict a link button to a certain role

samadam
Kilo Sage

I have Link button widget on a page. How can I restrict the button to a certain role. I have 2 buttons and want to restrict one button to a role. How can I do this?

2 REPLIES 2

SAI VENKATESH
Tera Sage
Tera Sage

Hi @samadam 

 

You can check on this link below :

 

https://www.servicenow.com/community/developer-forum/icon-link-widget-to-only-show-for-a-role/m-p/17...

 

Thanks and Regards

Sai Venkatesh

Wessel van Enk
Tera Guru
Tera Guru

Hi,

If it's a widget, you can easily add the roles that are required to view the widget via the ''Role'' field.

Wessel_0-1724672162071.png

 

 

If you cannot view this field, you might need to de-activate the Client script ''Hide Roles if User Criteria Enabled''.
Or you can add User Criteria to the widget via the related list:

Wessel_1-1724672210689.png