Skip to content

Commit 3c4e6f7

Browse files
authored
Add files via upload
1 parent d159571 commit 3c4e6f7

File tree

1 file changed

+13
-0
lines changed
  • Server-Side Components/MemberLessGroups

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This background script captures all the groups which are active and do not have any members added to the group.
2+
3+
What your script does correctly
4+
5+
Queries all active groups from sys_user_group.
6+
7+
For each group, it checks sys_user_grmember to see if there’s at least one member.
8+
9+
If no member exists (!br.next()), it pushes the group name into arr.
10+
11+
Finally, prints all such group names, comma-separated.
12+
13+
So logically, it works fine and will print all active groups with zero members.

0 commit comments

Comments
 (0)