Share via


Hosted Exchange::ChangeUserPassword

Changes the password of an AD user object.

Arguments

Input argument Required Description

<path>

Yes

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

<oldPassword>

Yes

<newPassword>

Yes

<preferredDomainController>

Yes

Remarks

Security

  • Impersonate caller.

Sample Code

Example XML Request

<request>   
        <procedure>     
                <execute namespace="Hosted Exchange" procedure="ChangeUserPassword"  impersonate="1">       
                        <executeData>         
                                <path>LDAP://CN=bob@alpineskihouse.com,OU=alpineskihouse,OU=WH,OU=Hosting,DC=FAbrikam,DC=Com</path>         
                                <oldPassword do-not-log="1">old</oldPassword>         
                                <newPassword do-not-log="1">new</newPassword>         
                                <preferredDomainController>AD01.fabrikam.com</preferredDomainController>       
                        </executeData>       
                        <after source="executeData" destination="data" mode="merge"/>     
                </execute>   
        </procedure> 
</request>

Example XML Response

No example XML response.

Applies To

Hosted Exchange Namespace API for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Hosted Exchange::SetUserPassword