Loading TOC...

MarkLogic 9 Product Documentation
xdmp:privilege-roles

xdmp:privilege-roles(
   $action as xs:string,
   $kind as xs:string
) as xs:unsignedLong*

Summary

Returns the set of all roles that have a given privilege.

Parameters
action The privilege action.
kind The privilege kind.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-privilege-roles

Example

xdmp:privilege-roles(
         "http://marklogic.com/xdmp/privileges/admin-module-write",
         "execute")
=> ( 8487823278258687528, 8950790268580922626, 
     14303099028664823447, 2890629636447572780,
     13947965013900320292 )

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.