Loading TOC...

MarkLogic 10 Product Documentation
xdmp.databaseNodeQueryRolesets

xdmp.databaseNodeQueryRolesets(
   nodes as Sequence,
   [options as String[]]
) as Sequence

Summary

Return a sequence of query-rolesets that are required for proper querying of the given database nodes with Element Level Security.

Parameters
nodes A sequence of database nodes.
options The default is ().

Options include:

"all"
Return all query-rolesets, even if they are already configured.
"unconfigured"
Return only those query-rolesets that are not configured.

Required Privileges

http://marklogic.com/xdmp/privileges/database-node-query-rolesets

Usage Notes

"Nodes" is a sequence of database nodes. If an array is passed in, it will be treated as one array node. Use Sequence.from to convert an array of nodes to a sequence of nodes when necessary.

If neither "all" nor "unconfigured" is present, it defaults to "all".

Example

xdmp.databaseNodeQueryRolesets(
    fn.doc("/example.json"), ["new"])

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.