Loading TOC...

MarkLogic 10 Product Documentation
sec.securityInstalled

sec.securityInstalled() as Boolean

Summary

Returns fn:true() if security has been installed on the current database. Otherwise, returns false.

Usage Notes

This function must be executed against the security database.

Example


// Execute this against the security database.
declareUpdate();
const sec = require('/MarkLogic/security');

sec.securityInstalled();

// Returns true if security has been installed on the current database, false otherwise.
   

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