Windows-based Hosting::DeleteUser

The DeleteUser procedure deletes a user, de-allocates resources, marks the user deleted in the Customer Service Plans database, and records a billing event.

Arguments

The DeleteUser procedure requires the following input parameters.

Input Argument Description

<path>

The Lightweight Directory Access Protocol (LDAP) path of the user.

<preferredDomainController>

The name of the preferred domain controller.

Output Arguments

The DeleteUser procedure has no return values.

Remarks

Security

The DeleteUser procedure has the following security requirements:

  • The caller is impersonated.

  • The caller is tested for OrgCreator permissions.

Process Steps

The following steps occur when deleting a user with the DeleteUser procedure of the Managed Windows-based Hosting Namespace:

  • Associate service plans with the customer.

  • Call appropriate resource management procedures to reserve resources based on Customer Service Plan attributes.

Sample Code

Example XML Request

The following is an example of an XML request for the DeleteUser procedure of the Managed Windows-based Hosting Namespace:

<request> 
        <procedure> 
                <execute namespace="Windows-based Hosting" procedure="DeleteUser"  
                impersonate="1"> 
                        <executeData> 
                        <preferredDomainController>AD01-wh.fabrikam.com 
                        </preferredDomainController> 
                        <path>LDAP://cn=User1@WbHOrg2.com, 
                        ou=WbHOrg2,ou=WbHReseller,ou=hosting,dc=fabrikam,dc=com</path> 
                        </executeData> 
                </execute> 
        </procedure> 
</request> 

Applies To

Managed Windows-based Hosting Namespace API for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Windows-based Hosting::CreateUser