- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2015 12:29 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2015 09:57 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2018 11:51 AM
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.