ManagedSharePoint2007::QuerySitesByCustomer
The QuerySitesByCustomer procedure queries all sites for an organization.
Arguments
Input Arguments | Required | Description |
---|---|---|
<org> |
Yes |
Lightweight directory access protocol (LDAP) path of the organization that owns the site. |
<preferredDomainController> |
Yes |
The name of the domain controller to use. |
Remarks
Procedure Step
- Query the customer data store or Active Directory (AD) for the collection of Windows SharePoint Services (WSS) sites assigned to the organization.
Note
QuerySitesByCustomer returns information for both subsites and site collections.
Security
Impersonate Caller.
Caller Tested for OrgCreator permissions.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="ManagedSharePoint2007" procedure="QuerySitesByCustomer" impersonate="1">
<executeData>
<preferredDomainController>AD01-wh.frabrikam.com</preferredDomainController>
<org>LDAP://OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</org>
</executeData>
<after source="executeData" sourcePath="sharePointSites" destination="executeData"/>
</execute>
</procedure>
</request>
Example XML Response
<response>
<data>
<preferredDomainController>AD01-wh.frabrikam.com</preferredDomainController>
<org>LDAP://OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</org>
<sharePointSites>
<sharePointSite name="AlpineTeamSite" location="https://teamalpine.alpineskihouse.com"/>
<sharePointSite name="managedTest2" location="https://collab01/sites/managedTest2"/>
</sharePointSites>
</data>
</response>
Applies To
Managed SharePoint 2007 Namespace for:
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
Windows-based Hosting version 4.5