AccountClientRequestManagementGroupAccountPasswordReset Method |
Generates a Reset Password Request RSN, facilitating Reset Forgotten Password function for an Account.
The Reset Password Request RSN value can be passed to the Web Service Method: Account Password Reset to enable the Account holder to change their Password.
public Result RequestManagementGroupAccountPasswordReset( ManagementGroupAccountRequest requestAccountPasswordReset )
using (var svc = new AccountService.AccountClient()) { //This method does not require a Token var request = new AccountService.ManagementGroupAccountRequest(); request.AccountName = "Account Name"; //Required - Could be card number/partner name/email address request.EmailTemplate = "Email template ID"; //Required request.ManagementGroup = "Management group"; //Required AccountService.Result result = svc.RequestManagementGroupAccountPasswordReset(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }