How to Restrict Requestors from Viewing Ineligible HR Services on the Backend Case Creation Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Before Query Business Rule on sn_hr_core_service — this is the best option because it filters ineligible services before they appear in any search, reference picker, or list in the backend, without affecting the Subject Person evaluation on the portal side.
- Go to System Definition → Business Rules → New
- Table:
sn_hr_core_service - When: Before, Query checked
- Condition: Runs in backend context only
- Script: Use
sn_hr_core.HRCriteriaEvaluatorto check criteria againstgs.getUserID(), then append an encoded query to exclude services the current user doesn't qualify for.
This keeps OOB HR Criteria behavior intact for the portal/Subject Person flow while adding requestor-level filtering in Agent Workspace and backend case creation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
55m ago
see this link on how to restrict
How to restrict “Opened for” users based on assignment group type in HR Agent Workspace?
💡 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
