EnumUsersInGroup

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

Syntax

<HFMwSecurity>.EnumUsersInGroup (bstrGroupsXml, lBitmaskFlags)

Argument

Description

bstrGroupsXml

An XML string that specifies the user groups’ names and security identifiers. Following is the structure of the string, which must contain one <User> element per group:

<Users><User><Name>group name</Name><Id>security identifier</Id></User></Users>

Input argument. String subtype.

lBitmaskFlags

A bitmask that specifies the identity types of the users to return. Valid values for the bits are represented by the HFMConstants 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.

Input argument. Long subtype.

Return Value

Returns an XML string that specifies the users’ usernames, security identifiers, and identity type bitmasks. Following is the structure of the string. There is one <Group> element per user group; each <Group> element contains one <User> element per user. Valid values for the bits in the identity type bitmasks are represented by the HFMConstants enumeration described in Identity Type Constants.

<Groups><Group name="group name" id="security identifier" ><User name="username" id="security identifier" type="identity type bitmask" /></Group></Groups>