Use the QueryResourcesByOrganization procedure of the IIS Resource Manager namespace to return all of the Exchange resources in use by a specific owning organization.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
<request>
<procedure>
<execute namespace="Exchange Resource Manager" procedure="QueryResourcesByOrganization">
<executeData>
<organization>LDAP://ou=Reseller,ou=Hosting,dc=contoso,dc=com</organization>
</executeData>
<after source="executeData" destination="data"/>
</execute>
</procedure>
</request>
The following input is valid for this request:
In the <organization> element, enter the Lightweight Directory Access Protocol (LDAP) path of the organization to be queried. Alternatively, in the <GUID> element, enter the globally unique identifier (GUID) of the organization to be queried.
<organization>LDAP://LDAP path of the owning organization</organization>
or
<GUID>{globally unique identifier}</GUID>
This request returns a list of the GUIDs and server names for all public stores and mail stores in the specified organization and indicates (in the <shared> element) whether the store is shared by multiple organizations (a value of 1) or owned by a single organization (a value of 0). In addition, this request returns the available (free) and allocated disk volume space for all of these public and mail stores.
<response>
<data>
<organization> LDAP://ou=Reseller,ou=Hosting,dc=contoso,dc=com </organization>
<orgResources>
<mailStore>
<GUID>{be0d70b9-5678-404f-a3ff-3c0c076c95de}</GUID>
<serverName>CONTOSO1</serverName>
<mailStoreName>Mailbox Store (CONTOSO1)</mailStoreName>
<megabytes>200</megabytes>
<megabytesFree>200</megabytesFree>
<shared>1</shared>
</mailStore>
<publicStore>
<GUID>{717dceea-ca48-44c5-a617-ba71f6a0bea8}</GUID>
<serverName>CONTOSO1</serverName>
<publicStoreName>Public Folder Store (CONTOSO1)</publicStoreName>
<megabytes>100</megabytes>
<megabytesFree>100</megabytesFree>
</publicStore>
</orgResources>
</data>
</response>
Important