none
Is it possible to get User Properties from the GAL using EWS? RRS feed

  • Question

  • I'm looking to get Office, Address, City, State, Manager, Phone, etc...

    Possible?

     

    Thursday, October 6, 2011 4:05 AM

All replies

  • Hi,

    you can use the ResolveNames method. It can return infos about users and contacts from Active Directory, including those infos you requested.

    http://msdn.microsoft.com/en-us/library/exchangewebservices.exchangeservicebinding.resolvenames(v=exchg.140).aspx

    Kind regards,
    Henning

    Thursday, October 6, 2011 8:03 AM
  • I thought that for AD entries ResolveNames only returned the name and email address?  I'd love to be wrong, because getting those AD values (Office, Address, City, State, Manager, Phone) using ResolveNames would be very useful for me.  Unfortunately, I can't find an MS doc which states how much it will return.  I know there's ReturnFullContactData, but isn't that only for AD Contacts, not users?  I assume the OP is talking about user accounts.
    Outlook Web Access For PDA , OWA For WAP
    www.owa-pda.com
    email a@t leederbyshire d.0.t c.0.m
    Thursday, October 6, 2011 3:53 PM
  • Hi Lee,

    if I execute this line of code:

    var result = service.ResolveName("Alice", ResolveNameSearchLocation.DirectoryOnly, true);

    Where Alice is an AD Member (User, not contact), the Contact property is fully populated.

    Kind regards,
    Henning

    Thursday, October 6, 2011 10:59 PM
  • Now that's useful!  I hope they stick with this API.
    Outlook Web Access For PDA , OWA For WAP
    www.owa-pda.com
    email a@t leederbyshire d.0.t c.0.m
    Monday, October 10, 2011 3:35 PM