ACL'S
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2023 11:39 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2023 11:45 PM
@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
ServiceNow Community Rising Star, Class of 2023