Is there a way to make the encryption of attachments automatic, rather than a checkbox visible to the user?

Joseph_Wheeler
ServiceNow Employee
ServiceNow Employee

I have a customer who does not want to let users forget to encrypt attachments.   Is there a way to make the encryption of attachments, using a single context, mandatory for all users?

1 ACCEPTED SOLUTION

brian_quinn
ServiceNow Employee
ServiceNow Employee

Joseph,



Similar to the post below linked below, you can force encryption to be enabled with a fixed encryption context on attachments by going to "System UI -> UI Pages" and finding the record for "attachment".   Modify the "Client script" field by adding the following the very beginning (modify the sys_id to the sys_id of the encryption context you want to force):



/**


* Enable encryption and disable checkbox


*/


forceEncryption();


function forceEncryption() {


      var ck_encrypt = gel('encrypt_checkbox');


      ck_encrypt.value = 'on';


      ck_encrypt.checked = true;


  gel('encrypt_checkbox').disabled = 'disabled';


  encryptionSelected('1b6e7167b9b202004e8230b4f32ea02e');


}



You will also have to add a forceEncryption() call as the last line of the refreshAttachments() function.  



Re: Attachement Pop-up - Encryption



2 things to keep in mind with this though... A user who does not have permission to the hard coded encryption context will not be able to select any other context and the file will be uploaded unencrypted.   This modification will also mean that any future updates ServiceNow makes to this UI Page will be skipped.



Thanks


Brian


View solution in original post

5 REPLIES 5

Jeff Boltz1
Mega Guru

You might be able to use Easy Encryption from the share.  https://developer.servicenow.com/app.do#!/share/contents/9824957_easy_encryption?v=1.03&t=PRODUCT_DETAILS

You could create an encryption rule on the forms that need attachments encrypted based on user role/encryption context.