- 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-27-2015 11:34 AM
Hello Fabian,
modify the write acl on problem table to below.
answer = (current.isValidRecord() && gs.getUser().isMemberOf(current.assignment_group));
Check if it workds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 11:46 AM
Dear Deepak
I just applied the modification that you just suggested but it is not working either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 11:47 AM
Turn on security debugging and look for the rule which is preventing access to the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2015 11:59 AM
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-27-2015 12:15 PM
OMG it is working
thanks a lot for your support Deepak