Getting the foreign owner of an organization by using XML

Use the GetForeignOwnerOrg procedure of the Managed Active Directory namespace to return a reseller's hosting organization or a customer's reseller. The supplied organization must be the root of its own organization. Hosting organizations do not have a foreign owner.

This call is implemented internally by checking the otherWellKnownObjects property of the supplied organizational unit. The foreign owner organization of an organization root can be bund to as LDAP://<WKGUID=58888CFC8F7F430C8183102CD5758D8a, ou=Reseller, ou=Hosting,dc=contoso01.dc=com>.

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

Example of a request that calls the GetForeignOwnerOrg procedure

<response>
  <data>
	<executeData>
	<path>LDAP://ou=Reseller,ou=Hosting,dc=contoso01,dc=com</path>
	<owner>LDAP://OU=Hosting,DC=contoso01,DC=com</owner>
	</executeData>
  </data>
</response>

Input for GetForeignOwnerOrg

The following input is valid for this request:

Typical response for GetForeignOwnerOrg

<response>
  <data>
	<executeData>
	<path>LDAP://ou=Reseller,ou=Hosting,dc=contoso01,dc=com</path>
	<owner>LDAP://OU=Hosting,DC=contoso01,DC=com</owner>
	</executeData>
  </data>
</response>

Important