MarkLogic Server 11.0 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.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy