Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sec.roleGetDefaultCollections

sec.roleGetDefaultCollections(
   role-name as String
) as Sequence

Summary

Returns a sequence of strings corresponding to the uri's of the role's default collections.

Parameters
role-name The name of a role.

Required Privileges

http://marklogic.com/xdmp/privileges/role-get-default-collections

Usage Notes

If a role with name $role-name is not found, an error is raised.

This function must be executed against the security database.

Example


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

sec.roleGetDefaultCollections("Developer")

=>

http://marklogic.com/dev_modules
http://marklogic.com/dev_docs
  

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