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.

Acl on certain records

AlekhyaD
Tera Contributor

Hi,

 

Am trying to create a acl on cmdb for two records that should be editable by only by members of x group. Tried creating table level write acl and in condition filtering with sys id then in script checking for user is member of x group then answer is true else false. It is not working and if I write the acl on table.* It is making read only all other records also.

Any suggestions please.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @AlekhyaD 

 

I think no need to write a script, you can use OOTB way in ACL, is member if condition.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@AlekhyaD 

Ensure you handle it in this way

1) create new table.None WRITE ACL with condition as SysId IS ONE OF 2 SysIds

In script check group membership

2) create new table.* WRITE ACL with condition as SysId IS ONE OF 2 SysIds

In script check group membership

3) Ensure any existing table.None and table.* WRITE ACLs work for other records so exclude the 2 sysIds from condition

SysId [IS NOT] SysId1

AND

SysId [IS NOT] SysId2

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader