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

Kindly mark answer as correct / helpful .


You are welcome


I am still not able to see the options to mark as correct/helpful


Could you mark your post as Question if not done already and then try?


fabiangr
Mega Contributor

I have enabled the debuggin and here you have what I am seeing when I am trying to créate a new problema task



find_real_file.png


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);


}