How to restrict Document Type based on subject person - Employee Document Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2025 05:23 AM
On employee documents, based on security rules, user can create the documents (if member of security groups). But in addition to that, if I want to restrict a document type based on subject person country, to show that type only to a specific country.
Can someone help on how to make it?
- Labels:
-
Employee Document Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago - last edited 2 weeks ago
Hello @Lucas7 ,
You can follow below approach to restrict document based on country
1. Configuration Steps on the Form
- Table: sn_hr_core_employee_document
- Field to filter: type
- Add a field on Document Type: e.g., country(single-select or multi-select list of allowed countries)
- Subject Person Country Source:
- From Subject Person HR Profile
- Or from Subject Person (sys_user) → country (if maintained there)
2. Apply Reference Qualifier (Dictionary or UI Policy)
Add a Reference Qualifier on Type (sn_hr_core_employee_document.type)
- Navigate to Dictionary → Reference Specification → Reference Qualifier (Advanced)
- Implement logic to filter document types based on the subject person’s country.
Checklist to Follow
✔ Add or verify country on sn_hr_core_employee_document.type
✔ Confirm where the subject person’s country is stored (HR Profile vs. sys_user).
✔ Implement the Reference Qualifier on sn_hr_core_employee_document.type
✔ (Optional) Add ACLs to prevent direct navigation to off-country document types for non-HR users.
✔ Test with example users from different countries to validate the configuration.
If my response helped you, please click on accepted the solution and consider giving it a thumbs-up
. This helps others find the solution faster and keeps the community thriving. Thank you for your support!
Thanks & Regards ,
Supriya Waghmode |ServiceNow Community Rising Star 2025🌟
