Allow (blocked by customized ACL) delegates to work(write access) on Assignments ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 06:35 AM
ServiceNow allows delegates of a user to work on Assigned Incidents but this has been blocked by a customized ACL.
As a solution we could create an new ACL or edit the current ACL but need some help in writing the script of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 06:47 AM
In the existing ACL you can include below function and its function definition. This function basically checks for all the users to whom he/she is assigned as delegate. If any of those satisfy the actual logic of having write access, this function returns true - thus providing access for the delegate as well.
isValidDelegate();
function isValidDelegate(){
var gr = new GlideRecord('sys_user_delegate');
gr.addQuery('delegate', gs.getUserId());
gr.query();
while(gr.next()){
//check if "gr.user" satisfies the condition of have write access.
//if yes, return true else return false
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2016 06:54 AM
Hi Aditya,
Ok. But i do not think delegation works that way.
If am an administrator, I have 4 incidents assigned to me and i have declared an end user has Delegator.
Even though the end user is my delegator, He wont be able to see the incidents assigned to me. He has to satisfy incident table ACL.
I mean to say, A peer(with same roles) will suit for a delegation. And he will be getting delegation tasks to the level only he is eligible to.
Thanks
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2025 09:14 PM
Hi @adityavishnu, may i know if you manage to solve this?