SetManySecurityClassRightsForUser2

Sets a user’s access and email alerting rights for one or more security classes. Security and access right IDs are passed in arrays that have a one-to-one correspondence.

Syntax

<HsvSecurityAccess>.SetManySecurityClassRightsForUser2 bstrUserSID, varalSecurityClassIDs, varalRights, varalEmailAlerting

Argument

Description

bstrUserSID

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

varalSecurityClassIDs

Long array (ByVal). The IDs of the security classes.

You can get a security class’s ID by passing its name to GetSecurityClassID.

varalRights

Long array (ByVal). The IDs of the access rights to be assigned. Valid values are represented by the enumeration described in Access Rights Constants.

varalEmailAlerting

Long array (ByVal). An array of bitmasks that represent the email alerting rights to assign. Valid values for the bits are represented by the enumeration described in E-mail Alerting Constants.