Loading TOC...

MarkLogic 12 EA 1 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"

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