Click or drag to resize

AdministrationClientRequestManagementGroupAccountPasswordResetFromAdmin Method

Syntax
C#
public Result RequestManagementGroupAccountPasswordResetFromAdmin(
	ManagementGroupRequestOfManagementGroupAccountRequest request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfManagementGroupAccountRequest

Return Value

Type: Result
Examples
C#
using (var svc = new AdministrationService.AdministrationClient())
{
  var request = new AdministrationService.ManagementGroupRequestOfManagementGroupAccountRequest();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var managementGroupAccountRequest = new AdministrationService.ManagementGroupAccountRequest();
  managementGroupAccountRequest.AccountName = "Account Name"; //Required - username
  managementGroupAccountRequest.EmailTemplate = "Email template ID"; //Required
  managementGroupAccountRequest.ManagementGroup = "LOYALTY_MEMBER";  //Required

  request.Value = managementGroupAccountRequest;
  AdministrationService.Result result = svc.RequestManagementGroupAccountPasswordResetFromAdmin(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed          
    throw new Exception(result.FaultDescription);
  }
}
See Also