Restrict HR incidents to only members of the HR group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 12:25 PM
I have a requirement to restrict any incidents that are assigned to the HR group to only be able to be seen by the members of that group. The users that are in the HR group have the ITIL role, as well as users of other groups.
How should my business rule be configured to have only HR team members see the incidents that are assigned the HR group. See my Business Rule script below... How should the "When to Run" and "Actions" tab be configured? or does anything on those tabs need to be changed at all with the correct advanced script?
Condition: !gs.getUser().isMemberOf('<ServiceNow - HR>') || current.opened_by == gs.getUserID()
Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 07:49 AM
@Community Alums
you want to restrict incidents so you will have to update the existing OOB query business rule on incident to handle that particular group.
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