End User to be able to search for any Incident number and Customer Visible Notes

sathwiksnc
Tera Contributor

Hi,

 

I got a requirement where in customer needs an End User in ServiceNow to be able to search for any Incident number and Customer Visible Notes through AI Search or in the Service Portal.

By default if the End User is added to the Incident Form's Affected User field, then he will be able to view the Incident but we need to achieve this even without adding him as Affected User.

I had created a read ACL with the below script but it did not work

if (gs.getUser().getRoles().lenght == 0 && current.affected_user!=gs.getUser().getID())

answer=true;

Could anyone please help me how can we achieve this?

 

Regards,

Sathwik

1 REPLY 1

Rashmi Kumari S
Tera Contributor

@sathwiksnc did you find the solution for the requirement?