using (var svc = new AdministrationService.AdministrationClient())
{
var request = new AdministrationService.ManagementGroupRequestOfSecurityAccountUpdate();
request.Token = "Token";
request.ManagementGroup = "Management group";
var securityAccountUpdate = new AdministrationService.SecurityAccountUpdate();
securityAccountUpdate.SecurityAccountRSN = new Guid("53db2e45-06b4-4e7d-9688-f2eebc158b68");;
securityAccountUpdate.Status = "ACTIVE";
var securityAccountManagementGroup = new AdministrationService.SecurityAccountManagementGroup();
securityAccountManagementGroup.GroupCode = "LOYALTY_MEMBER";
securityAccountManagementGroup.CanApproveTransactions = true;
securityAccountUpdate.ManagementGroups = new AdministrationService.SecurityAccountManagementGroup[] { securityAccountManagementGroup };
request.Value = securityAccountUpdate;
AdministrationService.Result result = svc.UpdateSecurityAccount(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}