Revision [1420]
This is an old revision of MarkLogicGetPermissions made by DavidLee on 2010-05-19 06:38:43.
Mark Logic Command: get-permissions
List permissions of documents from a Mark Logic serverSynopsis
get-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 |
document | uri of the document to list permissions |
Description
Lists permissions of the specified documents. This is a convenience routine wrapping xdmp:document-get-permissions and sec:get-role-names.The output is more readable then either.
Documents are specified by the URI used to store the document
Example
Assuming the prefix "ml" is imported as the marklogic module, gets the "test.xml" document and prints to stdoutml:get-permissions test.xml
Result
<permissions uri="test.xml"> <permission capability="read" role="user-read"/> <permission capability="insert" role="user-write"/> <permission capability="update" role="user-write"/> </permissions>
MarkLogic Extension Module