IADsGroup Method: Members

Members() As IADsMembers;

Returns a collection of ADs objects that represent members of a group.

Return Values
IADsMembers allows you to enumerate members in a specified group.

You can use the Members method to enumerate members of a group, for example, in VB you can use For Each User In Group.Members .


Dim GroupObject As IADsGroup
Dim Members As IADsMembers
Dim UserObject As IADsUser
Set GroupObject = GetObject("NTDS://YourDomainName/GroupName")
Set Members = GroupObject.Members
For Each UserObject In Members
Debug.Print UserObject.Name


See Also