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

Hello Fabian,



modify the write acl on problem table to below.



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


Check if it workds


Dear Deepak



I just applied the modification that you just suggested but it is not working either.


Turn on security debugging and look for the rule which is preventing access to the field.


please replace code with below, it will work.



if(!current.isValidRecord())


{


answer = true;


}


else


{


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


}


OMG it is working



thanks a lot for your support Deepak