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 create a read ACL only for Timeworked table for a particular group.

Aryan
Tera Contributor

Hi All,

 

How to create a read ACL only for Timeworked table for a particular group. 

 

We create a report (BAR graph) on timeoworked table but when the ABC group member is clicking on the bar graph the timeworked list view is not visible to them, only admin is able to see the data.

 

So i want to create a ACL for this to show a particular group the timeworked list view when they click on the bar graph.

 

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Aryan 

Elevate your role to Security admin group and go to ACL module.

 

You have to Table.none ACL and Table.* ACL.

In the ACL script, try below script.

 

 

var user = gs.getUser();
answer = user.isMemberOf('Group name');

 

Please mark the answer as helpful and correct if helped.

Kind Regards,

Ravi Chandra 

Brian Lancaster
Kilo Patron

Create a read ACL that check to see if the user is a member of ABC Group.

 

var currentUser = gs.getUser(); 
if (currentUser.isMemberOf(­'abc group')){
   answser = true;
}
else {
   answer = false;
}