Need to restrict removal of last member of the approval group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 10:26 PM
I have requirement, When a request is raised to remove a user from an approval group, if that user is the last member of the approval group. In that case i need to restrict the removal of the user by throwing an error that since the user is last member of the group he cannot be removed.
I have two use cases,
1. when a request is raised to remove the user and if the request is assigned to automation, in that case the manager of the user should be replaced in the group.
2. when a request is raised to remove the user manually, in that case it should throw an error that "the last member of the group cannot be removed" and the task should get closed.
Please help me to achieve this via business rule