Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

All case visibility for one particular user

sunny27
Tera Contributor

Hi All,

 

 

We have requirement, where user X needs to see all cases related to account Y even though she's not a opened by, internal user or in watchlist. Could you please help me with steps I need to follow here? I need to create BR here but how do I make it happen so that other BR won't get effected?

 

 

Regards,

1 REPLY 1

Sumanth16
Kilo Patron

Hi @sunny27 , 

 

Create a custom role for the user and modify the existing ACL (or) Write before query business rule based on that role.

 

 

 

(function executeRule(current, previous /*null when async*/) {

	current.addEncodedQuery("assignment_groupIN"+ gs.getUser().getMyGroups().toArray().join());//replace with your query

})(current, previous);

 

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda