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.
<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>
The following input is valid for this request:
In the <path> element, specify the Lightweight Directory Access Protocol (LDAP) path of the organization for which you want to get the information.
<path>LDAP://LDAP path of the hosting organization</path>
By using the <preferredDomainController> element, you can specify the domain controller you want to use for this request. Using a single preferred domain controller eliminates replication delays that arise between multiple controllers.
This information is optional. You are not required to include this element in the request.
<preferredDomainController>your primary domain controller.domain name extension</preferredDomainController>
<response>
<data>
<executeData>
<path>LDAP://ou=Reseller,ou=Hosting,dc=contoso01,dc=com</path>
<type>reseller</type>
</executeData>
</data>
</response>
Important