I need to get the information of list of all groups which doesn't have members in it.
Discussion posts and replies are publicly visible
Something along the lines of:
with( local!allgroups: getallgroups(-1, 1), a!forEach( local!allGroups, if( apn_isEmpty( getgroupmemberuserspaging( group: fv!item, startIndex: 1, batchSize: 1 ) ), fv!item, {} ) ))