Need Help Creating ACL on alm_hardware Table Based on "Managed By Group"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Everyone,
I am trying to create an ACL on the alm_hardware table in ServiceNow. We have a custom field called u_managed_by_group on the hardware asset record.
The requirement is:
✅ Only users who are members of the group specified in the u_managed_by_group field should be allowed to edit that hardware record.
All other users should have read-only access/not allowed to update.
Could someone please guide me through the step-by-step process to build this ACL?
If any scripts need to be written (for conditions or scripts within the ACL), please share those script as well.
@Ankur Bawiskar @Amit Gujarathi @Ravi Gaurav
Thanks,
Sattar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago - last edited an hour ago
Hi,
Try below with alm_hardware.* with type Write.
answer=false;
if(gs.getUser().isMemberOf(current.u_managed_by_group))
{
answer=true;
]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
it's an easy requirement and can be achieved without scripting
you can modify the existing Table.None WRITE ACL or Create a new one if it's not present
something like this in condition
u_managed_by_group [IS DYNAMIC] ONE OF MY GROUPS
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
