Skip to content

Commit 0dba886

Browse files
Create README.md
Information on working of the script.
1 parent f9a60bc commit 0dba886

File tree

1 file changed

+10
-0
lines changed
  • Server-Side Components/Scheduled Jobs

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
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

Comments
 (0)