Click here to Skip to main content
15,749,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written this small piece of code:

static ExpandGroupResults getMemberListFromExchange(string exchangeServerUri)
    exchangeService.UseDefaultCredentials = false;
    exchangeService.Credentials = new WebCredentials(exchangeAuthUser, exchangeAuthUserPW);
    Uri Url = new Uri(exchangeServerUri);
    exchangeService.Url = Url;
    return exchangeService.ExpandGroup(exchangeDistributionList);

My problem is getting the GAL hidden users in the ExpandGroupResults list. Any suggestions will be very welcome. Getting access to AD is not an option.

What I have tried:

Almost anything. I have downloaded the EWS "Exchange2016" version (GitHub - OfficeDev/ews-managed-api[^]) and build it and I can't find any way to fulfill my needs.
Updated 16-Feb-22 21:55pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900