I have this targetPageParamsAll() in the AEM page which would return the user groups as an array.targetPageParamsAll = function() {
var userGroups = "everyone,test1,test2,beta1";
var userGroups = userGroups.split(",");
return {
"userGroups": userGroups
}
}; Attaching a scre...