Using office Outlook, we can find the 'Memberships' tab when we click and expand a contact, this 'Memberships' tab shows the list of emails that the user is subscribed to.
For example, Employee X (x.x@zcompany.com / id123@zcompany.com) under the Data Department of Z Company is subscribed to the following distribution groups:
I would like to get the list of emails the user is subscribed to by inputting either the user's email or user's organization ID.
I found a few potential solutions but do not know exactly how to implement them:
Wonder if someone with experience doing this can provide some advice? Thanks in advance.
In OOM, call Application.Session.CreateRecipient
, Recipient.Resolve
, Recipient.AddressEntry.GetExchangeUser()
. ExchangeUser
exposes GetMemberOfList()
method, which returns IAddressEntries
object.