dls:document-get-permissions

dls:document-get-permissions(
   $uri as xs:string
) as element(sec:permission)*

Summary

This function gets the permissions for the specified document from the point of view of the Library Services API.

Parameters
uri The URI of the document.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

Example

  xquery version "1.0-ml";

  import module namespace dls = "http://marklogic.com/xdmp/dls" 
      at "/MarkLogic/dls.xqy";

  dls:document-get-permissions("/foo/bar/baz.xml")
  
  (: Returns the permissions for the 'baz.xml' document. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy