Loading TOC...

MarkLogic 9 Product Documentation
xdmp:role-roles

xdmp:role-roles(
   $name as xs:string,
   [$inherit as xs:boolean]
) as xs:unsignedLong*

Summary

If the parameter $inherit is true, returns the set of all roles inherited by a given role, including roles directly assigned to the role and roles inherited from other roles. Otherwise only return the set of roles assigned directly to the role.

Parameters
name The role name.
inherit Whether to include the roles inherited from other roles. The default value is true.

Required Privileges

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

Example

xdmp:role-roles("vp")
=> (2349872340, 432987324)

Example

xdmp:role-roles("vp", false)
=> (2349872340)

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