Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The members of a group are stored in a multi-value attribute called member. For groups with a small to medium-sized membership, use the IADsGroup.Members method to get a pointer to an IADsMembers object that contains the list of all members. Then use the IADsMembers::get__NewEnum to get an enumerator object that you can use to enumerate the members.
If the anticipated group membership will be 1000 or more members, use ranging to retrieve users one range at a time. For more information about using ranging to enumerate members, see Enumerating Groups That Contain Many Members.