Site Listing with owners name

Apr 17, 2012 at 12:55 PM

Hi ,

Is there any way to display all the webs under a site collection with owners(full control user)  names.

.I am able to list all the webs under the site collection using the below code. But not able full the owner names of that particular web.

 Can anyone please suggest.

$(document).ready(function() {

var newTR = "";
var url,title,userPerm;

$().SPServices({
  operation: "GetAllSubWebCollection",
  completefunc: function(xData, Status) {
//alert(xData.responseXML.xml);
        $(xData.responseXML).find("Webs > Web").each(function() {
      var $node = $(this);
url  =$(this).attr("Url");
       title   =$(this).attr("Title");
var newTr = '<tr><td class="ms-vb"><a href='+ url + ' > ' + title + '</a></td></tr>';
         $('#WebPartWPQ3').find('tbody').append(newTr); 

    });
  }
});
});

Coordinator
Apr 17, 2012 at 7:48 PM

For each site, try using Permissions.GetPermissionCollection. You can also look at the Users and Groups Web Service.

M.