Article ID: 220043 - Last Review: September 28, 2007 - Revision: 3.2 HOW TO: Find Distribution List Membership for a Given RecipientThis article was previously published under Q220043 On This PageSUMMARY
You can use the Active Directory Service Interfaces (ADSI) to obtain the distribution list membership for a given Microsoft Exchange Server Recipient object. This step-by-step article describes how to accomplish this using either Microsoft Visual C++ or Microsoft Visual Basic. NOTE: This is an alternative to using the members collection returned by the IADsUser::Groups method. One key difference is that enumerating the members collection will give you the group objects rather than the group names. See the documentation for IADsUser::Groups for more information. Find a Distribution List MembershipAn Exchange Server Recipient object holds its distribution list(s) membership through the LDAP memberOf attribute. This attribute is either returned as a single string or a variant array of strings.The following code will bind to a Recipient object using LDAP, cache the membership attribute, and print the distribution list(s) to the screen. Using Visual C++Using Visual BasicREFERENCES
For more information about Active Directory Services Interfaces (ADSI), please refer to the following Web site:
http://msdn2.microsoft.com/library/aa772170.aspx
(http://msdn2.microsoft.com/library/aa772170.aspx)
APPLIES TO
| Article Translations
|

Back to the top
