MarkLogic 12 EA 1 Product Documentation
xdmp.userGetDefaultPermissionsxdmp.userGetDefaultPermissions(
username as String,
[output-kind as String]
) as Object[]|Element[]
Summary
Return the default permissions of specified user.
Parameters |
username |
A user name.
|
output-kind |
The output kind. It can be either "objects" or "elements".
With "objects", the built-in returns an array of objects.
With "elements", the built-in returns an array of XML element nodes.
The default is "objects".
|
Example
xdmp.userGetDefaultPermissions("nobody")
=>
[
{
"capability": "read",
"roleId": "12371806025301146444"
},
{
"capability": "read",
"roleId": "8487823278258687528"
}
]
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.