Revision [1437]

This is an old revision of MarkLogicSetPermissions made by DavidLee on 2010-05-27 05:29:20.

 

Mark Logic Command: set-permissions

Sets permissions of documents on a Mark Logic server

Synopsis

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


Options

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


Description

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.



Example

Assuming the prefix "ml" is imported as the marklogic module, sets the "test.xml" document to have read and update permission for the users 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