Getting the owning organization of an object by using XML

Use the GetThisOrganizationRoot procedure of the Managed Active Directory namespace to return the owning organization of the supplied object. The owning organization will be either the hosting organization, a reseller, or a customer. The supplied object may be any member of the owning org. If you call this procedure and supply an object that happens to be an owning organization, the return value is the same as the supplied object.

To find the hosting organization that owns a reseller, or the reseller that owns a customer, call GetForeignOwnerOrg on the reseller or customer root organization.

This call is implemented internally by checking the other WellKnownObjects property of the containing organizational unit of the object (or the object itself, if it is an organizational unit). If the object is an organizational unit, it's organization root can be bound to as LDAP://<WKGUID=CC016CF08DEF4EA4A05C9C54B198785A, 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 GetThisOrganizationRoot procedure

	<execute namespace="Managed Active Directory" procedure="GetThisOrganizationRoot"
	<after source="executeData" destination="data" />

Input for GetThisOrganizationRoot

The following input is valid for this request:

Typical response for GetThisOrganizationRoot

This procedure returns the LDAP path of the owning organization.