sec.securityInstalled() as Boolean
Returns fn:true() if security has been installed on the current database. Otherwise, returns false.
This function must be executed against the security database.
// 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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.