xdmp:role-roles( $name as xs:string, [$inherit as xs:boolean] ) as xs:unsignedLong*
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. |
xdmp:role-roles("vp") => (2349872340, 432987324)
xdmp:role-roles("vp", false) => (2349872340)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.