Identifying the type of an organization by using XML

Use the GetOrgType procedure of the Managed Hosting namespace to return the type (hosting, reseller, customer, or private) of an organization. This call is implemented internally by checking the otherWellKnownObjects property of the organizational unit.

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

Example of a request that calls the GetOrgType procedure

<request>
  <procedure>
	<execute namespace="Managed Hosting" procedure="GetOrgType" impersonate="1">
	<executeData>
		<path>LDAP://OU=Reseller1,OU=Hosting,DC=contoso,DC=com</path> 
		<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
	</executeData>
	<after source="executeData" destination="data">
	</execute>
  </procedure>
</request>

Input for GetOrgType

The following input is valid for this request:

Typical response for GetOrgType

<response>
  <data>
	<executeData>
	<path>LDAP://ou=Reseller,ou=Hosting,dc=contoso01,dc=com</path>
	<type>reseller</type>
	</executeData>
  </data>
</response>

Important