GetUserAccessForAllRoles2

Indicates whether a user is assigned to the application’s roles. GetUserAccessForAllRoles2 returns arrays that enumerate the roles and whether the user is assigned to them; the arrays have a one-to-one correspondence.

Syntax

<HsvSecurityAccess>.GetUserAccessForAllRoles2 bstrUserSID, pvarabstrRoles, pvarabHasAccess

Argument

Description

bstrUserSID

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

pvarabstrRoles

Variant. Returns an array containing the names of the application’s roles.

pvarabHasAccess

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