- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2015 04:04 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 12:02 PM
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);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2015 04:07 PM
Welcome Fabian,
You want to use ACL rules to allow this.
http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules#gsc.tab=0
Check for isMemberOf current.group
http://wiki.servicenow.com/index.php?title=Getting_a_User_Object#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2015 04:18 PM
Thanks for your quick response Matt.
Do you have an example?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2015 05:44 PM
ACL
problem_task.write
Script:
answer = gs.getUser().isMemberOf(current.assignment_group);
http://wiki.servicenow.com/index.php?title=Getting_a_User_Object#gsc.tab=0
myUserObject.isMemberOf() | -- returns true or false if the current user is a member of the provided group (takes a group name or sys_id as its argument) |
Keep in mind that these kinds of security requirements can be too restrictive.
If the tickets assignment group gets cleared, you'll then find no-one can modify the ticket.
It could also get assigned to an empty or incorrect group.
You may wish to include another type of user who can modify tickets regardless of the assignment group.
If users are modifying tickets they shouldn't, everything is audited. These type of restrictions are often not necessary and cause more problems than they solve.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 12:19 PM
Agree : These type of restrictions are often not necessary and cause more problems than they solve.