sec.removePrivilege( action as String, kind as String ) as null
Removes the privilege identified by ($action,$kind).
If a privilege identified by ($action,$kind) is not found, an error is
returned.
Parameters | |
---|---|
action | The action URI for the privilege. If $kind is a URI privilege, then use the URI to protect for the action parameter. |
kind | Either "execute" or "uri". |
http://marklogic.com/xdmp/privileges/remove-privilege
This function must be executed against the security database.
// execute this against the security database declareUpdate(); const sec = require('/MarkLogic/security.xqy'); sec.removePrivilege( "http://marklogic.com/xdmp/privileges/mypriv", "execute") // Removes the execute privilege with the specified action.