"Access to api 'put(sys_user.date)' from scope 'sn_hr_core'" error on HR case form.Issue While creating HR case from Record producer, below error message pop up . Access to api 'put(sys_user.date)' from scope 'sn_hr_core' has been refused due to the api's cross-scope access policy. CauseCustom script in date variable.ResolutionThe behavior seen is due to custom script in default value of date variable Current scriptjavascript: var gdt = new GlideDateTime();current.date= gdt.getDisplayValue();When replicating this issue, we find in the node logs:Cannot set property "date" of null to "01-14-2020 09:36:13"Caused by error in at line 31:2: var gdt = new GlideDateTime();==> 3: current.date= gdt.getDisplayValue();In this case, current is referencing the user, not the variable. The following script resolves the issue:javascript: var gdt = new GlideDateTime();gdt.getDisplayValue();