hide script on script include

sydneyespos
Tera Expert

Hi community, do you have insights on how to hide the script section in script include for a particular script include? Only certain role can view the script. 

11 REPLIES 11

Aditya_hublikar
Kilo Sage

hello @sydneyespos ,

 

 Why you don't create record level acl as mentioned by @GlideFather . That ACL will hide whole record for unauthorized role.

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

yashkamde
Kilo Sage

Hello @sydneyespos ,

 

For this I created custom View and in that excluded script section and given the role :

Screenshot 2026-02-20 143112.png

 

Then Impersonated the user with the role so script section is not visible and the view is particulary visible to the user :

Screenshot 2026-02-20 142949.png

 

And normal Default View is this :

Screenshot 2026-02-20 143053.png

 

If my response helped mark as helpful and accept the solution.

@yashkamde 

User can still see the script from list view although it's blocked from form.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes @Ankur Bawiskar ,

 For this :

Screenshot 2026-02-20 143112.png

 

If my response helped mark as helpful and accept the solution.

@yashkamde 

but user can add script field by personalizing the columns from gear icon

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader