sec.protectedPathsCollection() as String
This function returns the collection of protected paths.
http://marklogic.com/xdmp/privileges/protected-paths-collection
const sec = require('/MarkLogic/security.xqy'); sec.protectedPathsCollection() => http://marklogic.com/xdmp/protected-paths
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.