xdmp:get-current-roles() as xs:unsignedLong*
Returns all the current roles, both assigned and inherited by the current user and any received from amps.
xdmp:get-current-roles() => (2349872340, 432987324)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.