You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are instances where groups are created but remain without members for an extended period, making them ineffective.
2
+
This script helps identify such groups that have no members within a specified timeframe and make them inactive.
3
+
4
+
Scenario-
5
+
Deactivate the active groups which doesn't have members for last 6 months.
6
+
Approach-
7
+
1. A scheduled job runs daily or weekly to identify groups without members.
8
+
2. To track when a group becomes memberless, a DateTime field (e.g. u_memberless_date) is added to the sys_user_group table and populated with the current date when no members are found.
9
+
3. If members are added later, the field value is cleared.
10
+
4. Groups that remain memberless for over six months (based on the u_memberless_date) are automatically deactivated.
0 commit comments