Group Object

Overview

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.

Member List

Properties


Comment As String (Read/Write)
Specifies a group's comment.

IsLocal As Boolean (Read-only)
Returns True if the group is a local group, i.e. this group object was obtained via UserManager.GetGroup(..., False) or UserManager.LocalGroups.

LocalUsers As IUsers (Read-only)
Obsolete.Same as Members. Supported to provide backward compatibility with AspNTUser.

Members As IUsers (Read-only)
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.

Name As String (Read-only)
Default property. Specifies a group's name.

RID As Long (Read-only)
Relative Identifier (RID) of this group. Assign this value to User.PrimaryGroupID when changing a user's Primary Group.

Users As IUsers (Read-only)
Obsolete. Same as Members. Supported to provide backward compatibility with AspNTUser.

Methods


Sub AddMember(Name As String)
Adds a member to this group. A member can be a user or, for local groups, a domain group.

Sub DeleteMember(Name As String)
Deletes a member from this group.

Sub SetInfo()
Does nothing. Supported to provide backward compatibility with AspNTUser.