
MarkLogic Server 11.0 Product Documentation
xdmp.rolesxdmp.roles() as Sequence
Summary
Returns the IDs of all roles in the system.
Example
xdmp.roles();
=> [2392349873545, 325667234556]
Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.