Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec:remove-privilege

sec:remove-privilege(
   $action as xs:string,
   $kind as xs:string
) as empty-sequence()

Summary

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".

Required Privileges

http://marklogic.com/xdmp/privileges/remove-privilege

Usage Notes

This function must be executed against the security database.

Example


(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace sec="http://marklogic.com/xdmp/security" at 
    "/MarkLogic/security.xqy";
  
sec:remove-privilege(
    "http://marklogic.com/xdmp/privileges/mypriv", 
    "execute")
 
(: Removes the execute privilege with the specified action. :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.