Managed Active Directory::SetUserPassword
The SetUserPassword procedure sets a user's password.
Arguments
Input Arguments | Required | Description |
---|---|---|
<user> |
Yes |
The Lightweight Directory Access Protocol (LDAP) path of the user whose password you want to set. |
<newPassword do-not-log="1"> |
Yes |
The new password for the user. |
<preferredDomainController> |
Yes |
The domain controller to use for this request. Using a single preferred domain controller eliminates replication delays that can arise between multiple controllers. |
Remarks
Security
- Impersonate Caller.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="Managed Active Directory" procedure="SetUserPassword" impersonate="1">
<executeData>
<user>LDAP://CN=myUser1,CN=Users,DC=contoso,DC=com</user>
<newPassword do-not-log="1">myNewPassword</newPassword>
<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
</executeData>
</execute>
</procedure>
</request>
Applies To
Managed Active Directory Namespace APIManaged Active Directory Namespace API for:
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
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