Tuesday, August 25, 2015

Find User Group in SharePoint 2010 using JQuery or SPServices

$(document).ready(function () {
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function (xData, Status) {
if ($(xData.responseXML).find("Group[Name='DC']").length == 1)
{

alert("DC group user Login");
}
else
{
alert("Not an Group user");
}
}
});
});


No comments:

Post a Comment