Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Need help getting permission groups of named site

$
0
0

I've managed to fix it - I was using the wrong webservice for my needs! D'oh!

Here's the code for anyone who wants it:

        $().SPServices({
            operation: "GetGroupCollectionFromWeb",
            webURL: siteURL,
            async: false,
            completefunc: function (xData, Status) {
              $(xData.responseXML).find("Group").each(function() {
                $("#WSOutput").append("GroupName: " + $(this).attr("Name") + "<br>");
              });
            }
        });

(WSOutput is a standard DIV, and siteURL needs to be set up as an initial variable, using the format of http://site/subsite - I don't think a trailing slash is required. 


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>