EnumUsersOrGroups

Returns the security identifiers, usernames, and identity types of the users in a user group.

Syntax

<HsvSecurityAccess>.EnumUsersOrGroups lBitmaskFlags, pvarabstrUserAndGroupSIDs, pvarabstrUserAndGroupFullNames, pvaralIdentityTypes

Argument

Description

lBitmaskFlags

Long (ByVal). A bitmask that specifies the identity types to return in the pvaralIdentityTypes argument’s array. Valid values for the bits are represented by the enumeration described in User Groups - User Type Flag Constants.

For example, to exclude bits for application administrators from the array, pass HFM_USER_GROUP_ENUM_EXCLUDEADMINS.

pvarabstrUserAndGroupSIDs

Variant. Returns an array that contains the security identifiers of the users or groups.

pvarabstrUserAndGroupFullNames

Variant. Returns an array that contains the usernames of the users or groups.

pvaralIdentityTypes

Variant. Returns an array of bitmasks that indicate the identity types of the users or groups. Valid values for the bits are represented by the enumeration described in Identity Type Constants.