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 restrict records visibility based on ACL

nehashrma28
Tera Contributor

As a Googler who submits the BRC Submission Survey and is added to the BRC Creator group, I should be able to perform specific actions based on the specified access controls in the acceptance criteria below:

Change to ACL role details:

  •  Any user who submits the BRC Submission Survey to create a BRC record should only be able to view the record pertaining to their survey submission.
  • If a Googler submits a BRC Submission Survey they should not be able to view all the BRC records

 

- I have created one read ACL as below however it doesn't fix my requirement.

 

answer = checkUser();


function checkUser(){

if (gs.getUserID() == current.u_brc_creator){return true;}

return false;


}

 

Please assist.

0 REPLIES 0