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 serverSynopsis
set-permissions [options] document [document ...]Options
-c,-connect uri | Use the connection string instead of $MLCONNECT |
-t | Use text for serialization instead of XML. Required for non-xml documents |
-r,-read user | Sets read permission for the specified user |
-i,-insert user | Sets insert permission for the specified user |
-u,-update user | Sets update permission for the specified user |
-x,-execute | Sets execute permission for the specified user |
-R | Recurses directory and applies permission to all children as well as the directory |
document | uri 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 samml:set-permissions -r joe -r sue -u joe -u sue -x sam test.xml
MarkLogic Extension Module