...
Code Block |
---|
var g = new GlideRecord('sys_user_grmember'); g.addQuery('name', 'CTS STC Cluster Zone 1'); g.query(); var n=0; while (g.next()) { if (n == 0 ) { gs.print('members are: '); } gs.print(g.user.user_name + ';'); n++; } gs.print(n + " members in group"); |