Share via


Hosted Exchange::ChangeUserMailboxPlan

This procedure modifies a customer's mailbox plan to a new specified mailbox plan.

Arguments

Input Arguments Required Description

ldapPath

Yes

The LDAP path of the the user.

Yes

planName

Valid Exchange mailbox service plan name.

preferredDomainController

Yes

consumerTypeName

No

"BusinessUser" or "ConsumerUser"

Output Arguments

None.

Remarks

Method Syntax

public string ChangeUserMailboxPlan( 
string ldapPath,string planName,  
string preferredDomainController, 
string consumerTypeName) 
        

Sample Code

Example XML Response

MPS XML Response in string format.

<response> 
  <data> 
    <customerTypeName>BusinessUser</customerTypeName> 
    <path>LDAP://CN=user@alpineskihouse.com,ou=alpineskihouse,OU=Wh,OU=Hosting,DC=fabrikam,DC=Com</path> 
    <planName>GoldMail</planName> 
    <preferredDomainController>AD01.fabrikam.com</preferredDomainController> 
    <properties> 
      <property name="msExchMailboxFolderSet"> 
        <value>108303</value> 
      </property> 
    </properties> 
    <mail> 
      <disableIMAP>0</disableIMAP> 
      <disablePOP>0</disablePOP> 
      <disableHTTP>0</disableHTTP> 
      <size>20000</size> 
    </mail> 
  </data> 
</response> 
        

Typical C# Usage

//Get user name and password.                            
        string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
        string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
 
        //Set credentials.       
        hostedExch.PreAuthenticate = true; 
        hostedExch.Credentials = new NetworkCredential(userName,pass); 
        lblMsg.InnerHtml = mpsResponseHeaderLabel; 
 
        //Display response. 
        this.mpsResponse.DocumentSource = ""; 
        response = hostedExch.ChangeUserMailboxPlan(path,planName, preferredDomainController,userType); 
 
        // set the response XML to match the return from MPF 
        responseXml.LoadXml(response); 
        this.mpsResponse.Document = responseXml 
        

Applies To

Hosted Exchange Web Service for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Hosted Exchange::CreateMailboxPlan