Make Delegates Visible to a User’s Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2023 08:08 PM
OOTB, it appears that a user’s manager is not able to see the delegate(s) if any under the delegate’s tab on the user’s account. This is important so that a manager can see who has been delegated especially when that user is out of the office. We are looking for a solution to ensure that managers see their direct reportees’ delegates.
Thanks in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2023 10:00 PM
Hello @WP2
Greetings!
You can edit the existing write ACL on sys_user_delegate.user
Try below ACL Script.
var user1 = current.user;
var gr = new GlideRecord('sys_user');
gr.addQuery('user', user1);
gr.addQuery('manager', gs.getUserID());
gr.query();
if(gr.hasNext())
return true;
please mark the answer as helpful and correct if your query is resolved.
Kind Regards,
Ravi Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 08:30 AM - edited 07-24-2023 11:10 AM
Thanks Ravi for your help.
I updated the read acl and dot-walked the condition to include the user.manager and it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 11:21 AM
Hey @WP2
Sorry I couldn't respond to earlier comment.
Yeah, If you want to give access to all user delegates to all manager, then that works. My approach is more of the delegates will be shown only to the current user record manager.
please mark the answer as helpful and correct solution if it helped.
Kind Regards,
Ravi Chandra