Hide Attachments in ServiceNow

vimalchandra
Kilo Contributor

Hi there,

We're looking at hiding attachments in incidents so our clients cannot view internal attachments. Our internal users however can view these attachments.

To describe the scenario - When an internal user attaches an email or a document in the attachments screen, there is an option where this specfic attachment is for internal visibility only, not visible to the client (ESS user). Our internal users can view the attachment and the client cannot.

I was wondering if there is some functionality around hiding attachments in ServiceNow and if so, it would be great to get some advice on how this has been achieved.

Thanks,

Vimal

9 REPLIES 9

Hi Shruti,



Thanks for responding to my question.



Just to clarify - it will be for some attachments therefore our clients will still have visibility to attachments that they need to see.



However, there are some attachments that only our internal users can only see so that when an internal user clicks the "attachment" icon, they can choose if the attachment is for internal visbility only. If so, our clients cannot view the attachment.



I hope that explains it



Thanks,



Vimal


Hi Vimil,


I guess you can restrict it based on tables, but you cant restrict some attachments from incident table and make others visible. Or you can restrict using created field or content type field or file name.



What condition you want to use to restrict attachment?



Shruti


basically you will have to put such condition as per your requirement, in the read ACL on sys_attachment.


condition flow would be


table   -> user type


vimalchandra
Kilo Contributor

Thanks all, let me get back to you on this


rajeevhanda
Kilo Expert

Try the following code in DOM manipulation: 

g_GlideUI.topWindow.addClassName('header_add_attachment','hide');

The above does not work when the form is opened along with navigation window, so try the following, it works everywhere: 

$j_glide('button[id="header_add_attachment"]').hide();