MarkLogic 10 Product Documentation
xdmp:user-privilegesxdmp:user-privileges(
$user as xs:string,
[$extSecId as xs:unsignedLong],
[$secDbFirst as xs:boolean]
) as xs:unsignedLong*
Summary
Return IDs of all privileges that a user have.
Parameters |
user |
A user name.
|
extSecId |
An external security config ID to search. This is needed only to find an
external user. The default is the current App Server's external-security
setting.
|
secDbFirst |
A boolean value to specify whether to check security database before any
specified external security. The default is the current App Server's
internal-security setting, or true when running on the task server.
|
Required Privileges
http://marklogic.com/xdmp/privileges/xdmp-user-privileges
Example
xdmp:user-privileges("ian")
=> (239871567325, 432987324)
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.