var getUser = []; var gUser = new GlideRecord('sys_user_grmember'); gUser.addQuery('group.name', "helpdesk"); gUser.query(); while (gUser.next()) { getUser.push(gUser.getValue('user')); } gs.print("getUser="+getUser)
How to get all users from group ServiceNow ?
Expert Asked question July 14, 2023