MarkLogic Server 11.0 Product Documentation
xdmp.roleName

xdmp.roleName(
   role-id as (Number|String)
) as String

Summary

Returns the role name for the specified role id. This function can be evaluated against any database and does not need to be evaluated directly against the security database. It returns the role name from the security database configured for the database in which the App Server evaluates against.

Parameters
role-id A role ID.

Example

xdmp.role(2392349873545);
=> "editor"
Powered by MarkLogic Server | Terms of Use | Privacy Policy