xdmp.roleRoles( name as String, [inherit as Boolean] ) as Sequence
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.roleRoles("vp"); => [2349872340, 432987324]
xdmp.roleRoles("vp", false); => [2349872340]
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.