SetSecurityClassRightsForUser2

Sets a user’s access and email alerting rights for a security class.

Syntax

<HsvSecurityAccess>.SetSecurityClassRightsForUser2 lSecurityClassID, bstrUserSID, lRights, lEmailAlerting

Argument

Description

lSecurityClassID

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

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

bstrUserSID

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

lRights

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

lEmailAlerting

Long (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.