restrict all to assign incident to xyz assignment group . -Setup only abc can assign to xyz assignme

nikhithak80
Tera Contributor

I want to write a business rule to restrict all to assign incident to xyz assignment group .
-Setup only abc can assign to xyz assignment group.

 

 

2 REPLIES 2

Najmuddin Mohd
Mega Sage

Hello @nikhithak80 ,

Whenever the assignment group is changed, we are looking which user updated the Incident.
If it was not abc, then abort the Incident.

Before Insert business rule
In the conditions,
Assignment group |  changes


In the script, add

 

if (gs.getUserID() == '<sys_id of the user abc>'){

gs.addInfoMessage("You can assign to this group");

setAbortAction(true);

}


If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.

Ankur Bawiskar
Tera Patron
Tera Patron

@nikhithak80 

so what script did you start with and where are you stuck?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader