- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 12:48 PM
Hi All,
I am working on a catalog item request. The catalog item name is Surveiallance Equipment Request. The request items and catalog tasks are confidential and should only be viewable by Assignment Group or Assigned To. I wrote a Read ACL on the "sc_req_item" table as below but the script isn't working.
// var getGroup = current.assignment_group.getDisplayValue();
// if(gs.getUser().isMemberOf(getGroup)){
// answer = true;
// }else{
// answer = false;
// }
var Surveillance_Technology = gs.getProperty('67cf00150fde03000339abf8b1050ec2');
if (gs.getUser().isMemberOf(Surveillance_Technology)) {
answer = true;
} else if (gs.getUserID == current.assigned_to)
answer = true;
else {
if ((current.assignment_group == Surveillance_Technology) && current.caller_id != gs.getUserID()) {
answer = false;
} else {
answer = true;
}
}
Please suggest if any corrections needed.
Thank you in advance 🙂
Karthik Babu
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 01:03 PM
Hello
Just creating new ACL is not enough you need to search for all the ritm Read ACLs.
You may have several and for the basic read ACLs for Requests that allow all ITIL(any other specif role) etc. to read the Ritm. Here you should add a condition that assignment IS NOT 'xyz'.
Please mark answer correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 01:03 PM
Hello
Just creating new ACL is not enough you need to search for all the ritm Read ACLs.
You may have several and for the basic read ACLs for Requests that allow all ITIL(any other specif role) etc. to read the Ritm. Here you should add a condition that assignment IS NOT 'xyz'.
Please mark answer correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 01:36 PM
Hi Saurav,
Thank you for quick response.
So you are saying that instead of adding a new ACL, update the current read ACLs for sc_req_item to add condition for assignment?
Thanks,
Karthik Babu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 01:40 PM
No i am saying you need to create an Acl but along with that you need to check and restrict other acl
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 02:02 PM
Got it. I will try and update soon. Thank you.