Loading TOC...

MarkLogic Server 11.0 Product Documentation
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. :)
    

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