GetRoleAccessForAllUsers2

Indicates whether the application’s users are assigned to a given role. GetRoleAccessForAllUsers2 returns arrays that identify the users and whether they are assigned to a role; the arrays have a one-to-one correspondence.

Syntax

<HsvSecurityAccess>.GetRoleAccessForAllUsers2 lRoleID, pvarabstrUserSIDs, pvarabstrNames, pvarabHasAccess

Argument

Description

lRoleID

Long (ByVal). The ID of the role. For a list of valid role IDs, see Role ID Constants.

Tip:

To get a role’s ID from its name, use GetRoleID.

pvarabstrUserSIDs

Variant. Returns an array containing the security identifiers of an application’s users.

pvarabstrNames

Variant. Returns an array containing the usernames of an application’s users.

pvarabHasAccess

Variant. Returns an array of flags that indicate whether the users are assigned to the role. An element returns TRUE if the user is assigned to the role, FALSE otherwise.