Click or drag to resize

UserManagementServiceupdatePasswordExt Method

Updates the password for the user attached to an Authentication Key.

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

Parameters

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

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
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