0
votes

I'm trying to search for a mailbox from the exchange server using EWS service as below.

 ewsClient.ResolveName("[email protected]", ResolveNameSearchLocation.DirectoryThenContacts, true, props)

But it always returns an empty list means there is no mailbox in the exchange server having this address. Actually, that mailbox exists in exchange server and we can access it through PowerShell using

 Get-Mailbox "[email protected]"

Both EWS and PowerShell accessed using the same service account.

What's the issue might be?

1
Is it a Hidden Mailbox ? ResolveNames will only return results if the Mailbox is visible in the Global Address listGlen Scales
Hi @GlenScales How can we check that?Sumith Jose
Get-Mailbox and look at hiddenfromaddresslistsenabled property. Or Logon to OWA or Outlook and check the GALGlen Scales
Thanks @GlenScales.It's worked. Please add it as an answer.Sumith Jose

1 Answers

1
votes

The ResolveName operation in EWS will only return results for objects that are visible in the Global Address List. Get-Mailbox and the hiddenfromaddresslistsenabled property will show if its been hidden from the GAL.