Loading TOC...

xdmp:role-name

xdmp:role-name(
   $role-id as xs:unsignedLong
) as xs: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-name(2392349873545)
=> "editor"

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.