Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: GetAllSubWebCollection Access Denied

sympmarc wrote:
Shennu:

Sounds like you're passing in some bad parameter(s). Can you post your code?

M.
Hey Sympmarc, thanks for getting back.

here is the code, it is called from a CEWP on the home page the site collection. When I login it runs fine, but if I login as a site member with contribute permission it failes. See errors as comments in the code please.
$().SPServices({
  operation: "GetAllSubWebCollection",
  webURL: "/",
  async: false, 
  completefunc: function(xData, Status) {
  alert("Status=" + Status); //on this line it returns ParseError 
        var out = $().SPServices.SPDebugXMLHttpResult({
            node: xData.responseXML //xData.responseXML is undefined.
        });
        $("#CEWP_ServicesSummary").html("<b>This is the output from the GetAllSubWebCollection operation:</b>" + out);
  }
});
I couldn't work out why it fails, so I am using GetWebCollection and call it recursively in order to walk through the all the sub webs. That seems to work with the same site member... The only worry is the performance... What do you think?

Cheers
Shennu

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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