Exchange Resource Manager::QueryAllOrganizations
This procedure returns all of the organizations that have had Exchange resources allocated to them.
Arguments
Input argument | Required | Description |
---|---|---|
preferredDomainController |
No |
|
sendCredentials |
No |
True if credentials will be included in the xml request. |
Remarks
Method Syntax
public string QueryAllOrganizations(
string preferredDomainController,
bool sendCredentials)
Sample Code
Example XML Request
No example XML request.
Example XML Response
<response>
<data>
<organizations>
<organization>
<GUID>{ee5c82e7-a0ec-4989-ac40-5994337bd8a1}</GUID>
<path>LDAP://OU=ExchOrg1,DC=raven01,DC=com</path>
</organization>
<organization>
<GUID>{5696e179-4857-4fb2-8b82-f062ad1aff3c}</GUID>
<path>LDAP://OU=ExchOrg2,DC=raven01,DC=com</path>
</organization>
</organizations>
</data>
</response>
Typical C# Usage
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
ExchRM.PreAuthenticate = true;
ExchRM.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = ExchRM.QueryAllOrganizations(preferredDomainController, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;
Applies To
Web Services API for:
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
See also
Tasks
Exchange Resource Manager::QueryOrganizationsByMailstore
Exchange Resource Manager::QueryOrganizationsByPublicstore