AD group
-
i am running the method to get all my users in a group my only problem is it only get the first 1000 users i have 2500 users in this group how do i change the capacity to 3000 public static ArrayList getUsers() { ArrayList excludeGroups = new ArrayList(); ArrayList users = new ArrayList(); excludeGroups.Add("CN=GMDPortal,OU=IT,OU=ADM,DC=corp,DC=ad,DC=ejhospital,DC=com"); foreach (string DEgroup in excludeGroups) { DirectoryEntry group = new DirectoryEntry("LDAP://" + DEgroup); foreach (object dn in group.Properties["member"]) { users.Add(dn); } } return users; }
-
i am running the method to get all my users in a group my only problem is it only get the first 1000 users i have 2500 users in this group how do i change the capacity to 3000 public static ArrayList getUsers() { ArrayList excludeGroups = new ArrayList(); ArrayList users = new ArrayList(); excludeGroups.Add("CN=GMDPortal,OU=IT,OU=ADM,DC=corp,DC=ad,DC=ejhospital,DC=com"); foreach (string DEgroup in excludeGroups) { DirectoryEntry group = new DirectoryEntry("LDAP://" + DEgroup); foreach (object dn in group.Properties["member"]) { users.Add(dn); } } return users; }
the LDAP policy on your domain controler has a setting, MaxPageSize . This is the maximum number of records the Active directory will return in any query result set. The default setting is 1000. You will have to ask your domain administrator to change that setting for you.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk
-
the LDAP policy on your domain controler has a setting, MaxPageSize . This is the maximum number of records the Active directory will return in any query result set. The default setting is 1000. You will have to ask your domain administrator to change that setting for you.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk