Symptoms

The task Complete removal of organization related to the subscription that is being removed from OA fails with the following error:

Failed to delete organization 'LDAP://<AD_PATH>'. Please delete all the users under this organization first.

Example of the AD path to OU:

LDAP://OU=SXXXXXXXXX,OU=RXXXXXXXXXX,OU=Hosting,DC=Some_Provider_Name,DC=local

Cause

For security reasons OA does not delete Active Directory Organization Units that contain existing users.

Resolution

  1. Delete the users under the mentioned organization unit;
  2. Restart the task

Internal content

Link on internal Article