ACL'S

Aneela Sravani
Tera Contributor

Hello

 

I have got requirement to make some custom fields editable for specific users. Used Business rule Scratchpad, Client scripts, ACL's but those fields are not editable. How can we achieve this with out disturbing the other scripts.

 

Thanks in advance

1 REPLY 1

jaheerhattiwale
Mega Sage
Mega Sage

@Aneela Sravani  Create write ACLs for those fields and in the script add below code

 

var grUser = new GlideRecord("sys_user");

grUser.addQuery("user_nameIN"+userIds.toString());

grUser.setLimit(1);

grUser.query();

 

answer = grUser.hasNext();

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023