Need to restrict removal of last member of the approval group

poornimabs
Tera Contributor

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

0 REPLIES 0