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.

How to do only assignment group members can read the respective incident.

Nakata1
Tera Contributor

I want to do only assignment group members can read the respective incident. For all other users can't read it. Is there any way?

1 ACCEPTED SOLUTION

Manoj Kumar16
Giga Guru

Write a read ACL on Incident table and put the condition in the advance script

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

answer=true;

View solution in original post

2 REPLIES 2

Manoj Kumar16
Giga Guru

Write a read ACL on Incident table and put the condition in the advance script

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

answer=true;

Indrajit
Mega Guru

Hey koya,

You can do this by two ways ,

Grant read/write permission to someone if the assignment group is one of their groups in the condition builder.

find_real_file.png

Or

You have to write below code in Write ACL script of Incident table

find_real_file.png

Kindly mark Correct and Helpful if it helps you to solve your problem.

Regards,

Indrajit.