MarkLogic 9 Product Documentation
sec:path-get-permissions

sec:path-get-permissions(
   $path as xs:string,
   $path-namespaces as element(sec:path-namespace)*
) as element(sec:permission)*

Summary

This function gets a list of permissions for the path named.

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

Required Privileges

http://marklogic.com/xdmp/privileges/path-get-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-get-permissions("/root/reg[fn:matches(@expr, 'is')]", (
<sec:path-namespace>
<sec:prefix>ml</sec:prefix>
<sec:namespace-uri>marklogic.com</sec:namespace-uri>
</sec:path-namespace>)  
)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy