Identifying consumers of Exchange resources of an organization by using XML

Use the QueryConsumersByOrganization procedure of the Exchange Resource Manager namespace to return all consumers of a particular owning organization and the resources available to them.

This procedure expects to be called with impersonate="1". The procedure impersonates the caller.

Example of a request that calls the QueryConsumersByOrganization procedure

<request>
 <procedure>
   <execute namespace="Exchange Resource Manager" procedure="QueryConsumersByOrganization">
	 <executeData>
	 <organization>LDAP://ou=ExchOrg1,dc=contoso,dc=com</organization>
	 </executeData>
	 <after source="executeData" destination="data"/>
   </execute>
 </procedure>
</request>

Input for QueryConsumersByOrganization

The following input is valid for this request:

Typical response for QueryConsumersByOrganization

This request returns a list of all the mailboxes and public stores used by the organization, including the total storage available for each.

<response>
  <data>
	<organization>LDAP://ou=Hosting,dc=contoso01,dc=com</organization>
	<mailboxes>
	<mailbox>
		<GUID>{2485e2f2-3bae-4562-be7b-a3952228e697}</GUID>
		<path>LDAP://CN=HA,OU=Hosting,DC=contoso01,DC=com</path>
		<kilobytes>100</kilobytes>
	</mailbox>
	</mailboxes>
	<publicFolders></publicFolders>
  </data>
</response>

Important