======Mark Logic Command: set-permissions ====== Sets permissions of documents on a Mark Logic server ====Synopsis==== 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 role||Sets read permission for the specified role|| ||-i,-insert role||Sets insert permission for the specified role|| ||-u,-update role||Sets update permission for the specified role|| ||-x,-execute||Sets execute permission for the specified role|| ||-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. Documents are specified by the URI used to store the document ====Example==== 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 %% ---- [[ModuleMarkLogic MarkLogic Extension Module]]