ServiceNow: System Maintenance

Groups - no members

var grGroups= new GlideRecord('sys_user_group');
var iCounter=0;
gs.print('**START: total active groups is ' + grGroups.getRowCount());
while ({

    var grGrpMemb=new GlideRecord('sys_user_grmember');
    if (!grGrpMemb.get('group', grGroups.sys_id)){
       gs.print( + ' has no members, please check');

gs.print('**END: ' + iCounter + ' groups have no members');


  1. You have shared amazing post. This post is really helpful for us to know the information. Thank you for taking your time to post such a wonderful article. Get for more information Porsche Car garage in Dubai

  2. You wrote this post very carefully.Basement Floor Epoxy Coating Specialists in Canada The amount of information is stunning and also a gainful article for us. Keep sharing this kind of articles, Thank you.


Post a Comment

Popular posts from this blog

GlideRecord setValue

URL link in addInfoMessage