Announcement

Collapse
No announcement yet.

Retrieve PDL Details

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Retrieve PDL Details

    Hi,

    I need to get the list of all the users who belong to any Distribution List (i.e. PDL).

    I need to mention here that I am able to get the details of a group but not the Distribution List.
    The email id of a Distribution list (eg. DLName) will be DLName.domainname.com
    But the email id of a Group (eg. GROUPName) will be GROUPName.groups.domainname.com

    How I retrieve details of group is:

    DirectoryEntry group = new DirectoryEntry("LDAP://companyName.com/cn=GroupUSER_Name,ou=groups,o=companyName.com", null, null, AuthenticationTypes.FastBind);
    foreach (object dn1 in group.Properties["member"])
    {
    Console.WriteLine(dn1.ToString());
    }


    This code gives me the detail of all the users who belong to the group called GroupUSER_Name.

    What I want to get is the list of all the users who belong to a PDL (Distribution List)

    I am able to check if there is any pdl which exists or not. But I am not able to get the list of all the members who belong to the particular PDL.
    The LDAP path for the same is:

    LDAP://companyName.com/[email protected],ou=Email,ou=Services,o=company Name.com

    Could you please help me how to get the details?
Working...
X