- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2026 10:50 PM
Hello,
ON RITM and sc_task, only members from a particular group should be able to access attachments attached in Catalog Item Variables from the activity section. How to achieve this
Any Insights into this are highly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2026 11:11 PM
you want to hide attachments from activity log based on group membership?
If yes then it can't be done without DOM manipulation
If you still wish to use DOM then check this link where I shared solution for something similar and enhance it by checking group membership and attachment
Note: DOM manipulation is not recommended
Hide Image Activities from RITM
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2026 01:33 AM - edited 02-16-2026 01:40 AM
Hi @RaginiP,
You can achieve this by using the onload() client script; you can use the below code:
function onLoad() {
//Type appropriate comment here, and begin script below
var group;
var assi_gr = g_form.getValue('assignment_group');
if (assi_gr == 'hardware') {
g_form.enableAttachments(true);
}
else{
g_form.enableAttachments(false);
}
}
If you find my answer useful, please mark it as Helpful and Correct 😊
Regards,
Soham Tipnis
ServiceNow Developer || Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
I’ve faced a similar requirement where attachment visibility needed to be restricted based on group membership, and ACLs alone didn’t fully cover the catalog variable attachments. I’d suggest checking the attachment access logic on the RITM and sc_task records and applying the group validation there, much like controlling access to specific areas