Delegate not able to see task details

Nikita35
Kilo Guru

hello

Certification task is assigned to user A and user B is his delegate.

user B is not able see the task content as there is one ACL defined.

Below is the screenshot of ACL.

ACL cert_task.PNG

Delegate of the assigned to is not able to see all the contents like related list also extra information.

delegate only able to see fields. however when task assigned to delegate he is able ti see all the content.

user view.PNGdelegate view.PNG

Can anybody confirm what can be the reason?

Regards,

Nikita Khavnekar

1 ACCEPTED SOLUTION

Dave Smith1
ServiceNow Employee
ServiceNow Employee

Can anybody confirm what can be the reason?


I'd guess that there's no check for current.assigned_to.delegateNameField == gs.getUserID().   Your highlighted check is simply for the assignee (A), not their delegate (B).


View solution in original post

3 REPLIES 3

Dave Smith1
ServiceNow Employee
ServiceNow Employee

Can anybody confirm what can be the reason?


I'd guess that there's no check for current.assigned_to.delegateNameField == gs.getUserID().   Your highlighted check is simply for the assignee (A), not their delegate (B).


That's correct,



what should be the command to check assigned to's delegates.



what should be in place of current.assigned_to.delegateNameField == gs.getUserID().


how to fetch delegate field in this ACL?


Dave Smith1
ServiceNow Employee
ServiceNow Employee

I don't know enough about certification tasks to know the field name, but you'll probably want an "or" case in there to check if it's the assigner OR their delegate, e.g.:



if (current.assigned_to == gs.getUserID() || current.assigned_to.delegateNameField == gs.getUserID() )



Can you dot-walk to the field name in the script?