EnumUsersInGroup

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

Syntax

<HsvSecurityAccess>.EnumUsersInGroup bstrGroupSID, lBitmaskFlags, pvarabstrUserSIDS, pvarabstrUserFullNames, pvaralIdentityTypes

Argument

Description

bstrGroupSID

String (ByVal). The group’s security identifier.

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.

pvarabstrUserSIDS

Variant. Returns an array that contains the users’ security identifiers.

pvarabstrUserFullNames

Variant. Returns an array that contains the users’ usernames.

pvaralIdentityTypes

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