Hiding Attachment link from SCTASK form for a role/group

MThomas1
Tera Expert

Hello,

 

We have a requirement for a project to HIDE attachment link from SCTASK form for a specific role/group/specific catalog item.( we have multiple catalog items )

Is this a doable requirement? 

We have one catalog item for REQ-RITM-SCTASK - generation for access purpose 

We have another catalog item  for REQ-RITM-SCTASK - generation for license purpose 

 

For Liocense purpose tasks , project team want to HIDE Attachment link on the form. 

what is the best practice?  Is it recommended to encourage these requirements? will this requirement conisdered as high level customizations? 

 

Thank you.

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron

@MThomas1 

are you talking about the paper-clip icon on the native form for attachment?

if yes then to hide you need to create sys_attachment WRITE ACL for your table and then use advanced script to check the Catalog item name and check group membership

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi Ankur,

Thank you for your input.

yes, paper-clip icon. 

will the advanced script/ACL -> create any perforamnace delay as it will RUN against every SC_Task generated for Catalog Item name /group membeship? 

 

Thank you.

Also, if the users are memers of multiple groups and this requirement is only specific to 1 group memmership , how will we address that?

@MThomas1 

you will have to use advanced script to check logged in user is part of that particular group

yes it will have impact as you are querying the sc_req_item to grab the catalog item name

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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