Mark Logic Command: set-permissions

Sets permissions of documents on a Mark Logic server


set-permissions [options] document [document ...]


-c,-connect uriUse the connection string instead of $MLCONNECT
-tUse text for serialization instead of XML. Required for non-xml documents
-r,-read roleSets read permission for the specified role
-i,-insert roleSets insert permission for the specified role
-u,-update roleSets update permission for the specified role
-x,-executeSets execute permission for the specified role
-RRecurses directory and applies permission to all children as well as the directory
documenturi of the document to list permissions


Sets permissions of the specified documents. This is a convenience routine wrapping xdmp:document-set-permissions.

The -r,-i,-u,-x options may be specified multiple times.

Documents are specified by the URI used to store the document


Assuming the prefix "ml" is imported as the marklogic module, sets the "test.xml" document to have read and update permission for the roles joe and sue and execute permission for sam

ml:set-permissions -r joe -r sue -u joe -u sue -x sam  test.xml

MarkLogic Extension Module
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki