MarkLogic 10 Product Documentation
xdmp:security-database

xdmp:security-database(
   [$database-id as xs:unsignedLong]
) as xs:unsignedLong

Summary

Returns the database ID of the security database associated with the current database.

Parameters
database-id A database ID. Defaults to the current database.

Usage Notes

To run queries against the security database, you can specify the xdmp:security-database() function as the second parameter to xdmp:eval-in().

Example

xdmp:security-database()
=> 8447094497219470018
Powered by MarkLogic Server | Terms of Use | Privacy Policy