Hosted Email 2007::DeleteResouceMailbox

This procedure removes the resource mailbox of a user in Exchange and removes Exchange attributes from Active Directory.

Arguments

Input Arguments Required Type Description

<preferredDomainController>

Yes

string

The domain controller to use for Active Directory actions.

<user>

Yes

string

The Lightweight Directory Access Protocol (LDAP) path of the user object for which the resource mailbox will be removed.

Remarks

Security

Caller must be at least a member of role: UserCreators.

Permission Check

No explicit permission check is required for this procedure. The procedure calls Managed Email 2007::DeleteResourceMailbox which performs a test for UserCreators.

Preconditions

The Hosted Email 2007 namespace has been initialized.

Post-conditions

The specified resource mailbox is removed from Exchange. Association attributes of the user account in Active Directory are reset.

Schema Definition

Input

<executeData> 
        <preferredDomainController>1..1</preferredDomainController> 
        <user>1..1</user> 
</executeData> 
 

Output

<executeData>1..1 </executeData>

Sample Code

Example XML Request

<request> 
  <data> 
    <!--The domain controller to use for Active Directory actions.--> 
    <preferredDomainController>AD01.Fabrikam.Com</preferredDomainController> 
    <!--Specifies the LDAP path of the user object to delete the mailbox from.--> 
    <user>LDAP://CN=Room101@AlpineSkiHouse.com,OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=Fabrikam,DC=Com</user> 
  </data> 
  <procedure> 
    <execute namespace="Hosted Email 2007" procedure="DeleteResourceMailbox" impersonate="1"> 
      <before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" /> 
      <before source="data" sourcePath="user" destination="executeData" mode="move" /> 
      <after source="executeData" destination="data" mode="merge" /> 
    </execute> 
  </procedure> 
</request>

Example XML Response

<response> 
    <data /> 
</response>

Applies To

Hosted Email 2007 Namespace for:

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

Hosted Email 2007::CreateResourceMailbox
Hosted Email 2007::ModifyResourceMailbox
Hosted Email 2007::GetResourceMailbox