Hosted Active Directory::DeleteOrganization
The DeleteOrganization method deletes an organization, marks the organization deleted in the plan database, and records a billing event.
Note
This procedure will fail with an error if any users still exist in the organization.
Arguments
Input Arguments | Required | Description |
---|---|---|
<path> |
Yes |
The Lightweight Directory Access Protocol (LDAP) path of the organization to delete. |
<preferredDomainController> |
Yes |
The name of the preferred domain controller. |
Remarks
Procedures Steps
Managed Plans::GetPlansByCustomer- Query customer plan
Managed Plans::RemovePlanFromCustomer - Marks the customer record and all associated customer assets with a status of Deleted.
Managed Plans::DeleteCustomer - delete the org record.
Managed Active Directory::DeleteOrganization: this procedure will make sure no users under OU before it is got deleted.
Sample Code
Example XML Request
<request xmlns:xsl="https://www.w3.org/1999/XSL/Transform">
<procedure xmlns:xsl='https://www.w3.org/1999/XSL/Transform'>
<execute namespace="Hosted Active Directory" procedure="DeleteOrganization" impersonate="1">
<executeData>
<path>LDAP://OU=AlpineSkiHouse, OU=Reseller1,OU=Hosting,DC=Fabrikam,DC=Com</path>
<preferredDomainController>ad01.fabrikam.com</preferredDomainController>
</executeData>
<after source="executeData" destination="data" mode="merge"/>
</execute>
</procedure></request>
Applies To
Hosted Active Directory Namespace API for
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0