Grantright – Kofax DM API User Manual
Page 258

238 C
HAPTER
4
GrantRight
GrantRight
Use this method to set the named bit in the rights mask for the specified
user or group.
Syntax
PCDDocObject.GrantRight( strRightName, _
intRightsIn )
Parameters
Returns
Returns an integer that contains the rights mask. This information is
stored in the
ACCESSRIGHTS
column in the
SECURITY
table of the SQL
database that supports your DM system.
Usage
The Profile and QuickSearch rights are the lower 16 bits of a 32-bit
integer. Bit settings are OR’ed together. For example, a user with rights
to view profiles (binary
0000000000000001
) and edit profiles (binary
0000000000000010
) would have a rights setting of 3 (binary
0000000000000011
).
The following Profile rights are supported:
strRightName
The name of the right to grant.
intRightsIn
The rights mask in which you want to grant the
named right.
Value
Token
Description
1
%PR_VIEW
View Profile
2
%PR_EDIT
Edit Profile
4
%PR_CONTENT_VIEW
View Document Content
8
%PR_CONTENT_RETRIEVE Retrieve Document Content
16
%PR_CONTENT_EDIT
Edit Document Content
32
%PRCONTENT_COPY
Copy Document Content