xdmp.userPrivileges(
user as String,
[extSecId as (Number|String)],
[secDbFirst as Boolean]
) as Sequence
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.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.