using (var svc = new AdministrationService.AdministrationClient())
{
var request = new AdministrationService.ManagementGroupRequestOfSecurityAccountSearch();
request.Token = "Token";
request.ManagementGroup = "Management group";
var securityAccountSearch = new AdministrationService.SecurityAccountSearch();
securityAccountSearch.AccountOwnerName = string.Empty;
securityAccountSearch.Email = string.Empty;
securityAccountSearch.ManagementGroups = new string[] { "LOYALTY_MEMBER" };
securityAccountSearch.Partner_RSN = Guid.Empty;
securityAccountSearch.UserName = string.Empty;
securityAccountSearch.PageNumber = 1;
securityAccountSearch.PageSize = 10;
request.Value = securityAccountSearch;
AdministrationService.ResultOfPagedCollectionOfSecurityAccount result = svc.SelectPagedSecurityAccountList(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}