@raj99918 Please share your Script include code. 

@Sandeep Rajput 

 

SI Code:

 

var Groupsdata= Class.create();
Groupsdata.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

    getGroupnames: function() {
        var groups = [];
        var user = this.getParameter('sysparm_userID');
        var gr = new GlideRecord('sys_user_grmember');
        gr.addQuery('user', user);
        gr.query();
        while (gr.next()) {
            groups.push(gr.group.sys_id);

        }
        //return 'sys_idIN' + groups.toString();
         return groups.join(',');
    },
type: 'Groupsdata'
});
 
Note: Client callable is true and it's running on scoped application

@raj99918 Please update the script include script as follows.

var Groupsdata= Class.create();
Groupsdata.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {

    getGroupnames: function(user) {
        var groups = [];        
        var gr = new GlideRecord('sys_user_grmember');
        gr.addQuery('user', user);
        gr.query();
        while (gr.next()) {
            groups.push(gr.group.sys_id);
        }
        return 'sys_idIN' + groups.toString();         
    },
type: 'Groupsdata'
});

Also, apply the same reference qualifier again on the Group field in order to make the reference qualifier call the script include.

View solution in original post

Hi @Sandeep Rajput  Sorry still it's not pulling the filter values and its getting all the group names.

 

@raj99918 Sent you a message, please check.