Best way to restrict most HR Services to a set of groups. They should only access 4 HR services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 06:59 AM
I have a requirement to restrict around 15 groups from accessing several other HR services but 4. They have the case writer role. What's the best way to do this. I don't see effectiveness on COE security policy as I have to identify all groups to attach to each COE so just this is implemented. Hope you can help me thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 11:07 AM
Hello,
Check my answer here
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2022 12:04 AM
I have tried this and it is unable to open records saying 'record not found' but how come the cases are still visible from the hr case list. how do I hide it from the list as well without doing any list filters.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2022 02:43 AM - edited ‎11-11-2022 02:44 AM
You can create Query before BR on HR case table then like below
Condition :
gs.getSession().isInteractive()
Code:
(function executeRule(current, previous /*null when async*/) {
if((gs.getUser().isMemberOf('8e8c05c9db4da4d0787fe4e1ca9619d9')) ||(!gs.getUser().isMemberOf('901c4d0edb05acd0787fe4e1ca96191f')) ||(!gs.getUser().isMemberOf('6b40c1afdb522b002b54f77c2996198d')) || (!gs.getUser().isMemberOf('7c15094adb16a700515f84eb0b961981'))){
current.addEncodedQuery('active=true^hr_service!=8c1db1099f231200d9011977677fcf59^hr_service!=8d3103151bfc5d5017ad99f32a4bcb00');
}
})(current, previous);
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 08:43 PM
Hi @geannaweed ,
As per the best practice, you should Restrict at the COE level using COE security policy itself.
For your requirement, this is the best solution which you can implement :