Group Object

The Group object represents a Windows NT local or domain group account. It can be obtained via the UserManager.GetGroup method, or UserManager.Groups and UserManager.LocalGroups collections.

Group Properties
Property Type/Access
(R) - read-only; (W) - write-only; (RW) - read/write.
Comments
Name String (R) Default property. Specifies a group's name.
Comment String (RW) Specifies a group's comment.
IsLocal Boolean (R) Returns True if the group is a local group, i.e. this group object was obtained via UserManager.GetGroup(..., False) or UserManager.LocalGroups.
Members IUsers Object (R) Returns a Users collection of User objects representing members of this group. Note that a local group may contain Domain groups among its members, but those Domain groups will still be represented by User objects. In that case the IsGroup properties of these User objects will be set to True.
Users IUsers Object (R) Obsolete. Same as Members. Supported to provide backward compatibility with AspNTUser.
LocalUsers IUsers Object (R) Obsolete.Same as Members. Supported to provide backward compatibility with AspNTUser.
RID Long (R) Relative Identifier (RID) of this group. Assign this value to User.PrimaryGroupID when changing a user's Primary Group.

Group Methods
Method Arguments / Return type (if applicable) Comments
AddMember Name As String Adds a member to this group. A member can be a user or, for local groups, a domain group. 
DeleteMember Name As String Deletes a member from a group.
SetInfo   Does nothing. Supported to provide backward compatibility with AspNTUser.