var vip_grm = new GlideRecord('sys_user_grmember');
vip_grm.addQuery('group', 'SNVIP');
vip_grm.query();
while (vip_grm.next()) {
var vip_rec = new GlideRecord('sys_user');
vip_rec.addQuery('sys_id', vip_grm.user);
vip_rec.query();
while (vip_rec.next()) {
vip_rec.vip = true;
vip_rec.update();
}
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.