Click or drag to resize

UserManagementServiceupdateUserPasswordExt Method

Updates another user's password.

Namespace:  (Default Namespace)
Assembly:  SeniorSystemsWS (in SeniorSystemsWS.dll) Version: 937.0.0.0 (937.0.0.33)
Syntax
public ResultLogin updateUserPasswordExt(
	string authKey,
	string userID,
	string oldPassword,
	string newPassword
)

Parameters

authKey
Type: SystemString
Authentication Key obtained from the loginExt method in UserManagementService for a current administrator connection.
userID
Type: SystemString
The user name to be changed.
oldPassword
Type: SystemString
The old password.
newPassword
Type: SystemString
The new password.

Return Value

Type: ResultLogin
Exceptions
ExceptionCondition
ApplicationExceptionInvalid authorization key
ApplicationExceptionThe password for LDAP authenticated users cannot be changed through web services
ApplicationExceptionThe password for the schema owner cannot be changed through web services
ApplicationExceptionOnly an administrator can change other users passwords
ApplicationExceptionInvalid username or password
Remarks
Success or failure is obtained by checking ResultLogin.Status which contains one of these values.

A new password may not be accepted if it does not meet the valid password rules defined. Check ResultLogin.ErrorType for a list of errors. ResultLogin.Message will contain the password rules that were violated. This text can be displayed to the user, if desired.

For a complete text representation of the valid password rules, see the getPasswordErrorMessageText method.

For a list of possible errors and warnings, see ResultLogin.ErrorType.

The authorization key provided must be linked to an administrator role.

See Also