
dls:document-get-permissions( $uri as xs:string ) as element(sec:permission)*
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. |
dls-user role is required to run this function,
or the privilege:http://marklogic.com/xdmp/privileges/dls-user
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. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.