Security incident field/table query

Vengeful
Mega Sage

We have a Security incident field to the incident form and a Security Incidents table, our client wants it to be visible only to their group. Can this be done via ACL?

Merza_0-1697595919334.png

Merza_1-1697595996323.png

 

 

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Vengeful ,

 

Yes the field can be hidden displayed via ACL to users of a particular group.

You just need to create a field level ACL for security incident field to be displayed & under script section for the ACL u can write below script

 

if(gs.getUser().isMemberOf('')){ // enter group name under qoutes

answer = true;

}else{

answer = false

}

 

& for module u can edit that module via the pencil icon available next to it & provide the role which only that group has.This way it will only be visible to that group.

 

Thanks,

Danish

 

View solution in original post

5 REPLIES 5

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Vengeful ,

 

Yes the field can be hidden displayed via ACL to users of a particular group.

You just need to create a field level ACL for security incident field to be displayed & under script section for the ACL u can write below script

 

if(gs.getUser().isMemberOf('')){ // enter group name under qoutes

answer = true;

}else{

answer = false

}

 

& for module u can edit that module via the pencil icon available next to it & provide the role which only that group has.This way it will only be visible to that group.

 

Thanks,

Danish

 

Hello @Danish Bhairag2 ,

I created this ACL, I am not sure if I'm missing condition or what.

Merza_2-1697613500061.png

Merza_3-1697613527011.png

Here's the result, the Security Incident  field is read-only when create new incident. How can I make it non-visible?

Merza_0-1697613309762.png

 

And for the incident that was already created, the Security Incident field is not grayed out. How can I make it non-visible?

Merza_1-1697613372846.png

 

Hi @Vengeful ,

 

Can u try creating a Read ACL  instead of Create n check if its visible or not.

 

Thanks,

Danish

 

Hi @Danish Bhairag2 

I already figured it out. I missed to create read ACL. Thanks for the help.