Auto remove inactive managers from active groups and inactive users from active groups

Sai Santhosh Ch
Tera Contributor

When a user goes inactive we need to check if that user was a manager of a group or if that user was a member of   a group. If the user is a member of a group we will remove them from that group. If they were a manager of that group we need to replace that user with their manager and notify the manager that they have been assigned the group manager.