Effective_rights, Syntax, Parameters usage – Kofax DM API User Manual
Page 370: Example

350 C
HAPTER
5
%EFFECTIVE_RIGHTS
%EFFECTIVE_RIGHTS
Each document can be accessed by many users, and it can be
customized. Using the Access control on the profile form, an author or
document administrator can grant various access permissions to other
users.
Syntax
PCDDocObject.GetReturnProperty( _
“%EFFECTIVE_RIGHTS”)
Parameters
Usage
The
HasRight
method lists the tokens that
%EFFECTIVE_RIGHTS
supports. See the discussion of
Example
'Create a doc object.
pDocObject = CreateObject("PCDClient.PCDDocObject.1")
'Check the errors.
checkError(pDocObject, "ERROR_CREATESEARCH")
'Set the user's DM security (DST).
pDocObject.SetDST(strDST)
'Set the object type.
pDocObject.SetObjectType("cyd_defprof")
'Set the library name, document number, and version.
pDocObject.SetProperty("%TARGET_LIBRARY", library)
pDocObject.SetProperty("%OBJECT_IDENTIFIER", docnumber)
pDocObject.SetProperty("%VERSION_ID", version)
'Get the requested information.
pDocObject.Fetch()
%EFFECTIVE_RIGHTS
The token identifier that requests the
application to provide the access rights
that the current document allows for the
current user.