Skip to main content

Securing MarkLogic Server

Using the security.xqy Module Functions

The installation process installs an XQuery library to help you use security objects in your XQuery code. The security.xqy library module includes functions to access user and privilege information, as well as functions to create, modify, and delete objects in the security database.

The functions in security.xqy must be executed against the security database. You can use these functions to do a wide variety of things. For example, you can write code to test which collections a user has access to and use that information in your code.

For the signatures and descriptions of the functions in security.xqy, see the MarkLogic XQuery and XSLT Function Reference.