Get Group Collection From User using Spervices
function Getrolesforuser(user) { var loggedinUserGroup = ""; var loggedinUserGrpID = ""; $().SPServices({ operation: "GetGroupCollectionFromUser", userLoginName: user, async: false, completefunc: function(xData, Status) { $(xData.responseXML).find("Group").each(function() { //loggedinUserGroup = $(this).attr("Name"); loggedinUserGrpID = $(this).attr("ID"); if (loggedinUserGrpID == grpID) { // alert("You are IN Group"); isExist = true; ...