SetSecurityClassRightsForManyUsers2

Sets one or more users’ access and email alerting rights to a given security class. Users’ security identifiers, access right IDs, and email alerting flags are passed in arrays that have a one-to-one correspondence.

Syntax

<HsvSecurityAccess>.SetSecurityClassRightsForManyUsers2 lSecurityClassID, varabstrUserSIDs, varalRights, varalEmailAlerting

Argument

Description

lSecurityClassID

Long (ByVal). Long (ByVal). The ID of the security class.

You can get this ID by passing the security class name to GetSecurityClassID.

varabstrUserSIDs

String array (ByVal). The users’ security identifiers.

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.