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

How can I restrict that only the support groups which the task is assigned can modify it?

fabiangr
Mega Contributor

Dear All

I am new in servicenow and I have a request since into the problem tasks everyone can manipulate the task even if they don not belong to the support group.

I would like to know how can I restrict that only the support group which the task is assigned can modify it

1 ACCEPTED SOLUTION

You wont able to create because write ACL does not allow you to do so,


please modify write ACL code to below.



please replace code with below, it will work.



if(!current.isValidRecord())


{


answer = true;


}


else


{


answer = gs.getUser().isMemberOf(current.assignment_group);


}


View solution in original post

22 REPLIES 22

Fabian,




edit the following ACL rule




https://YOURINSTANCE.service-now.com/sys_security_acl.do?sys_id=80dda66bc0a80166614b4965c9f56b6e



remove the require's itil role and add the following script.



answer = gs.getUser().isMemberOf(current.assignment_group);


ss.png


Matt



Thanks for your support.



I just modified the ACL Rule and it is working however I am not able to créate new problem task all the fields looks like grayout



find_real_file.png



I have ACL rule for creation and it has itil role related, but it is not working I mean I am not able to créate new problema task as I mentioned above



find_real_file.png


find_real_file.png



Any idea?



Thanks in advance


You edited the create rule and not the write rule. Please recheck.


Hello Matt I edited the correct one I meant ACL write rule.



But I am not able to créate new problem task since all the fields looks as grayout. I posted the configuration of the ACL créate rule


Hi Fabian,


have you tried modifying the script logic for write ACL?