ChangePassword(String,String,String,String,DateTime) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The ChangePassword() method allows a user change the password of another specified user. The user ID and password of the user making the change must be passed. Also, for the password change to succeed, the user making the change must have permission to change the target user's password.
This overload of the method includes a lastEditAt DateTime parameter that can be used for optimistic concurrency control.
'Declaration
Public Overloads Shared Function ChangePassword( _
ByVal logonUserID As String, _
ByVal logonUserPassword As String, _
ByVal targetUserID As String, _
ByVal targetUserPassword As String, _
ByVal lastEditAt As Date _
) As Date
public static DateTime ChangePassword(
string logonUserID,
string logonUserPassword,
string targetUserID,
string targetUserPassword,
DateTime lastEditAt
)
Parameters
- logonUserID
- Required. Holds the logon ID of the user who is changing the password.
- logonUserPassword
- Required. Holds the login password for the user who is changing the password.
- targetUserID
- Required. Holds the ID of the user whose password is being changed.
- targetUserPassword
- Required. Holds the new password for the target user.
- lastEditAt
- Required. Holds a DateTime value to avoid data contention. If it is specified, the passed value must match the lastEditAt value in the database for the update to succeed.