none
Get all Distribution List Owners - Outlook 2010 RRS feed

  • Question

  • Greetings,

    I am currently looking for a way to get the owners of a distribution list without using OWA. The platform is Exchange 2010, and I am able to use EWS to get the member and primary owner, but not the additional owners. I currently use an outlook plugin in C# that gets this information (primary owner), but doesn't display all the owners of the distribution list. Does anyone know of a way to get this information programmatically without using OWA? I need to query about 190 Lists. I also need to mention I do not have access to the exchange management console, the only resources that I have is OWA and Outlook 2010. Eventually, we want to give this program to end users to use to manage the List themselves. Our exchange server uses a proxy, featuring SSL and Async. The only thing I can think of at this point is Screen Scrapping the OWA screen, but that is a last resort at this point. Our AD controllers don't house the Distro List, our exchange servers are housed at another location that we can not manage or access. I doubt we even have access to LDAP to query the information, although I can access the server using  mfcmapi tool. Anyone have any ideas? Thanks!

    D Harrington


    Dimitri J Harrington

    Tuesday, March 25, 2014 3:53 PM

Answers

  • Dimitry,

    The Outlook object model doesn't provide any other properties for this. However, you can try using MFCMapi or any other third-party libraries (for example, Redemption). But I am not sure whether any supports such functionality.  

    Tuesday, March 25, 2014 5:01 PM
  • Dimitry,

    OWA is a feature of the Exchange server software, not Outlook. That's why I'd recommend asking Exchange server specialists instead.  

    Tuesday, March 25, 2014 8:44 PM
  • Outlook uses PR_EMS_AB_OWNER, so what you see in OutlookSpy is the same data used by Outlook itself.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, March 25, 2014 8:47 PM

All replies

  • Hello Dmitry,

    Did you try to use the GetOwners method of the ExchangeDIstributionList class from the Outook object model?

    Tuesday, March 25, 2014 4:20 PM
  • I did, it only gets the owner of the top of the owner list, and doesn't get the additional owners.

    Dimitri


    Dimitri J Harrington

    Tuesday, March 25, 2014 4:41 PM
  • Dimitry,

    The Outlook object model doesn't provide any other properties for this. However, you can try using MFCMapi or any other third-party libraries (for example, Redemption). But I am not sure whether any supports such functionality.  

    Tuesday, March 25, 2014 5:01 PM
  • Are you sure there are multiple owners?

    What do you see if you navigate to that DL in OutlookSpy (click IAddrBook, "Open Root Container", GetHierarchyTable, double click on the container, open the DL from the GetContentsTable tab, etc.). When you open the IDistList object, what do you see in the PR_EMS_AB_OWNER tab?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, March 25, 2014 7:14 PM
  • Dmitry,

    Yes there are multiple owners, I can see them in OWA using /ecp/MyGroups/EditDistributionGroup.aspx

    If I use the outlookspy, I only see the one owner, just like with Outlook 2010 Client. If I use OWA, I see multiple owners. Thanks for the suggestion though.

    Dimitri


    Dimitri J Harrington

    Tuesday, March 25, 2014 8:22 PM
  • Dimitry,

    OWA is a feature of the Exchange server software, not Outlook. That's why I'd recommend asking Exchange server specialists instead.  

    Tuesday, March 25, 2014 8:44 PM
  • Outlook uses PR_EMS_AB_OWNER, so what you see in OutlookSpy is the same data used by Outlook itself.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, March 25, 2014 8:47 PM