MarkLogic Server 11.0 Product Documentation
xdmp:role-get-default-permissionsxdmp:role-get-default-permissions(
$rolename as xs:string,
[$output-kind as xs:string]
) as element(sec:permission)*|map:map*
Summary
Return the default permissions of specified role.
Parameters |
rolename |
A role name.
|
$output-kind |
The output kind. It can be either "elements" or "objects".
With "elements", the built-in returns a sequence of XML elements.
With "objects", the built-in returns a sequence of map:map.
The default is "elements".
|
Example
xdmp:role-get-default-permissions("nobody")
=>
<sec:permission xmlns:sec="http://marklogic.com/xdmp/security">
<sec:capability>read</sec:capability>
<sec:role-id>8487823278258687528</sec:role-id>
</sec:permission>
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.