Platform SDK: Active Directory, ADSI, and Directory Services

Groups

Groups are an integral part of user management and security in a Windows 2000® environment. Apart from the standard methods possessed by all ADSI objects, the Group object has the following methods.

Method Description
Members Returns a collection of the group's members.
IsMember Returns True if the given ADsPath is a member of the group.
Add Adds the given ADsPath to the group.
Remove Removes the given ADsPath from the group.

The Group object also has a property.

Property Description
Description Provides a place for a string comment about the group.

Note that the Add and Remove methods are used for adding objects to and removing objects from a particular group, not for adding and removing groups.

The following group-related topics are further detailed in this section: