
sec.userGetDefaultCollections( user-name as String ) as Sequence
Returns a sequence of strings corresponding to the uri's of the user's default collections.
| Parameters | |
|---|---|
| user-name | The name of a user. |
http://marklogic.com/xdmp/privileges/user-get-default-collections
If a user with name $user-name is not found, an error is raised.
This function must be executed against the security database.
// execute this against the security database
const sec = require('/MarkLogic/security.xqy');
sec.userGetDefaultCollections("Jim")
=>
http://marklogic.com/jims_modules
http://marklogic.com/jims_docs
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.