Make Delegates Visible to a User’s Manager

WP2
Kilo Guru

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.

3 REPLIES 3

Ravi Chandra_K
Kilo Patron
Kilo Patron

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

Thanks Ravi for your help.

I updated the read acl and dot-walked the condition to include the user.manager and it worked.

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