Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp.roleRoles

xdmp.roleRoles(
   name as String,
   [inherit as Boolean]
) as Sequence

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.roleRoles("vp");
=> [2349872340, 432987324]

Example

xdmp.roleRoles("vp", false);
=> [2349872340]

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