The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Hi everyone..I have written ACL for restricting write access on incident state field so that this field should be accessible only if state is not one of 'Resolved', 'Closed' or 'Cancelled' and logged in user is a member of 'Assignment Group'

shaveta
Mega Expert

Hi everyone..I have written ACL for restricting write access on incident state field so that this field should be accessible only if state is not one of 'Resolved', 'Closed' or 'Cancelled' and logged in user is a member of 'Assignment Group'. For some reason, it is not working as expected. Below is the screenshot for same.

Also please note that I have actually changed an existing one so at field level I guess there should be no issue.acl_state.png

25 REPLIES 25

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Have answer = checkIfMember(); in the script


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Script looks good. Can you please turn on debugger and check what is causing the issue.


Thanks Pradeep. I changed the script, it dint help. I will turn on debugger and try.


Hi Shaveta,



Okay looks like you have hardcoded the value current.assignment_group. Just make that change and let me know the outcome.