Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sec:path-remove-permissions

sec:path-remove-permissions(
   $path as xs:string,
   $path-namespaces as element(sec:path-namespace)*,
   $permissions as element(sec:permission)+
) as empty-sequence()

Summary

This function removes permissions for a protected path.

Parameters
path The protected path.
path-namespaces The namespace(s) for the path.
permissions The permissions to remove.

Required Privileges

http://marklogic.com/xdmp/privileges/path-remove-permissions

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:path-remove-permissions("/a[b=1]/c", (
<sec:path-namespace><sec:prefix>ml</sec:prefix>
<sec:namespace-uri>marklogic.com</sec:namespace-uri></sec:path-namespace>),  
(xdmp:permission("dls-user", "read"), (), xdmp:permission("dls-user", "update")))
    

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