ChangePassword Method
- Last UpdatedNov 06, 2025
- 2 minute read
The ChangePassword() method changes the password of a specified user.
public static void ChangePassword(
int sessionId,
string userId,
string password,
string targetUserId,
string newPassword,
out string modId
)
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this method call.
- userId
Required. Holds the ID of the user who is changing the password. For example, the employee number or name of the employee.
- password
- Required. Holds the password of the user who is changing the password.
- targetUserId
- Required. Holds the ID of the user for whom the password is to be changed.
- newPassword
- Required. Holds the new password for the user.
- modId
- Output. Holds the modification ID assigned the last time this record was added or last updated.
Return Value
Returns a DataSet that contains all the records in the User_Name table that satisfy the specified filters. If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
mod_id |
The current modification ID of the record in the table. This ID is binary number that increments each time the record’s table row is modified. Optionally used for optimistic concurrency control when performing updates or deletes. |