hide script on script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
Hi @sydneyespos,
a script include without the script field is useless... why would you do that?
If you want to restrict the access, then you can apply custom ACL on [sys_script_include] table... with that only specific role or group of users will have access to that field.
EDIT: custom ACL or adjust existing ones
https://yourinstance.service-now.com/sys_security_acl_list.do?sysparm_query=nameSTARTSWITHsys_script_include
Or you can think of adding/removing snc_required_script_writer_permission role but it would have impact on all scripting, not just script include:
This role was introduced one or two releases back, so check if your instance have it.
100 % GlideFather experience and 0 % generative AI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
we need to hide the script for specific script include as it is confidential
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
OK, then you will need a security admin to adjust these ACL accordingly:
https://yourinstance.service-now.com/sys_security_acl_list.do?sysparm_query=nameSTARTSWITHsys_script_include
Based on the exact permission - shall the people see the script includes but cannot edit them (debugging purposes) or not to see them at all?
Based on the answers to questions above, you might want to restrict the access on the table level (they cannot see it at all) or field level (script field would be read only or invissible for them)..
100 % GlideFather experience and 0 % generative AI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
but why?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
