Returns the security identifiers and usernames of the users and groups assigned to a given role, and optionally allows you to return this information for users of any groups assigned to the role.
<HsvSecurityAccess>.EnumUsersInRole3 lRoleID, vbExpandGroup, pvarabstrUserSIDs, pvarabstrNames
Long (ByVal). The ID of the role. For a list of valid role IDs, see Role ID Constants. To get a role’s ID from its name, use GetRoleID. | |
Boolean (ByVal). A flag that specifies whether to include security identifiers and usernames of groups’ users. Pass TRUE to return details of groups’ users, FALSE otherwise. | |
Variant. Returns an array containing the security identifiers of the users and groups assigned to the role. This array has a one-to-one correspondence with the array returned by the pvarabstrNames argument. | |
Variant. Returns an array containing the usernames of the users and groups assigned to the role. |