MarkLogic Server 11.0 Product Documentation
xdmp:access

xdmp:access(
   $uri as xs:string,
   $action as xs:string
) as xs:boolean

Summary

Returns whether a given action on the specified document URI would succeed.

Parameters
uri The document URI.
action The type of access: "create", "insert", "update", "node-update" or "execute".

Example

  xdmp:access(
         "http://example.com/foo.xml",
         "create")
   => true()
Powered by MarkLogic Server | Terms of Use | Privacy Policy