How to Show/hide HR service on Case creation page for an Assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 07:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 08:02 AM
Mrman,
On the HR Service configuration form, use a HR Criteria to restrict the service per assignment group.
Configure an HR service | ServiceNow Docs
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2021 09:10 AM
Hi
I believe that can be achieved via the "CoE security configuration" module - create read and write records for the CoE and add the HR service as a condition (deactivate "Applies to all services"), then add the groups below that should have access.
I am not 100% sure that also prevents the Service to not show in the screen you presented above, but it should certainly prevent other users to create, change and read such cases.
Christian
Please mark helpful or correct, if deemed so. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 09:10 AM
Do we have any update on this? i need the same info as i have same requirement to implement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 07:29 PM
Hi @Mrman , I think what you will need to do is edit the reference qualifier script on the HR Service field of the HR Case table. You can include the rules you want in the advanced JavaScript.
HR Criteria won't give you the result you want as these will be based on the "Subject Person" not the HR Agent.
I don't think COE security will work as these rules can't come into effect until AFTER the service is selected, unless they are referenced by the OOTB reference qualifier functions (getQueryToLimitServices).
Doesn't look like it from the code...