- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 08:33 AM
but it is efeting in HR Portal end user end. I have attached the screenshot.
Business rule:
(function executeRule(current, previous /*null when async*/ ) {
ACL for HR_Marelli groups user for HR case only read access we restric the write and update.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 09:32 AM - edited 07-23-2025 09:34 AM
I'm not sure I understand your ACL if statement. It seems incomplete after the or. You just have gs.getUser() but by itself that would not do anything. So they ACL is probably returning false. I think after the or you should just have current.isNewRecord() so it would look something like this.
if ((gs.getUser().isMemberOf('HR_Marelli_CN') && current.isNewRecord()) || current.isNewRecord())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 09:22 AM
then ensure this business rule runs only for agents and not for end users.
Try checking some role in BR condition
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 09:31 AM
I need end user end also. Kinldy help me on this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 09:32 AM - edited 07-23-2025 09:34 AM
I'm not sure I understand your ACL if statement. It seems incomplete after the or. You just have gs.getUser() but by itself that would not do anything. So they ACL is probably returning false. I think after the or you should just have current.isNewRecord() so it would look something like this.
if ((gs.getUser().isMemberOf('HR_Marelli_CN') && current.isNewRecord()) || current.isNewRecord())
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 09:39 AM
if (gs.getUser().isMemberOf('HR_Marelli_CN') && current.isNewRecord() || current.isNewRecord())
Thank you for this code ACL working.