Unable to attach the attachments though user has roles Issue Even though a user has the necessary roles, when they try to attach an attachment, it fails. ReleaseAll ReleasesCauseThe most probably root cause is the below scripted ACL: https://<instance>.service-now.com/sys_security_acl.do?sys_id=0bcf23740a6a38d400c7e02590038464 var parentRecord = new GlideRecord(tableName);parentRecord.setWorkflow(false);if (!parentRecord.isValid() || !parentRecord.get(current.table_sys_id)) {if (current.sys_created_by.equals(gs.getUserName()))return true;return false;} If the [sys_user.user_name] field has been modified to store more than 40 characters then the validation can fail as 'sys_created_by' only stores 40 characters (and truncates the rest).ResolutionThe User ID field [sys_user.user_name] field length should not be modified as it can lead to multiple issues (such as this one). Please refer to KB0870001 for more detail. Please work with ServiceNow support to revert the field length to 40 characters to restore correct functionality.Related LinksKB0870001 - Why you should not increase the max length of the User ID field [sys_user.user_name] which is limited to 40 characters Out of the Box