How to restrict HR agents from reopening closed HR cases?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 04:32 AM
Hi,
I have a requirement that if a HR case is closed complete then HR agents should not reopen it. Only HR Admins should be able to reopen them. This is a common requirement. Do we have any OOB setup for this or do I need to create ACL?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 05:07 AM
You can set the Re Open button visible only for Admins
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2024 03:53 AM
But agents can still able to edit the state field. I believe we can do this using an ACL but I want to understand is there any OOB setup for this requirement as its very common case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 11:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 12:18 AM
Hi @Vasu ch ,
To restrict the reopening of HR cases to only HR Admins when they are marked as “Closed Complete,” you can implement a Business Rule.
Here is a sample script:
if (current.state.changes() && current.state == 'Closed Complete' && !gs.hasRole('sn_hr_core.hr_admin')) {
gs.addErrorMessage("You are not authorized to reopen this case.");
current.setAbortAction(true);
}
I would appreciate if you can mark this response as correct or helpful if it assisted you with your question.
Thanks,
Aryan Jain