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.

restrict visibility for tickets in an assignment group for only 1 catalog item.

Chetan Kumar
Tera Contributor

My Requirement : Only the assignment group members should be able to view the tickets

What are the different ways to perform this action.

 

8 REPLIES 8

Vasantharajan N
Tera Sage
Tera Sage

1. You can use Display Business Rule

2. Access Control (ACL) 


Thanks & Regards,
Vasanth

Hello Vasantharajan

Can you please give me an example for BR

Yousaf
Giga Sage

Hi Cheta,

You can try ACL with condition in the advance script

if(gs.getUser().isMemberOf(current.assignment_group)).

 

Mark Correct or Helpful if it helps.

 


***Mark Correct or Helpful if it helps.***

Musab Rasheed
Tera Sage

Hello,

You can do this with Query Business rule on sc_req_item table or sc_task table

Here is the example

https://servicenowguru.com/scripting/business-rules-scripting/controlling-record-access-before-query-business-rules/#:~:text=The%20purpose%20of%20the%20'incident,Opened%20by%20on%20the%20Incident.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab