trgr.triggerRemovePermissions( trigger-name as String, permissions as Sequence ) as null
Removes a set of permissions from the set of permissions on the named trigger.
This function must be run in the context of the database containing the trigger to be modified.
Any permissions on $trigger-name
not listed in
$permissions
are unchanged.
Any permissions in $permissions
not associated with
$trigger-name
are ignored.
If the named trigger does not exist, the exception
TRGR-TRIGGERDNE
is raised.
// Run in the context of the database containing the trigger. const trgr = require('/MarkLogic/triggers'); trgr.triggerRemovePermissions( 'myTrigger', (xdmp.permission('some-role', 'modify')) );