Loading TOC...

sec:user-get-default-collections

sec:user-get-default-collections(
   $user-name as xs:string
) as xs:string*

Summary

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

Parameters
user-name The name of a user.

Required Privileges

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

Usage Notes

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

This function must be executed against the security database.

Example


(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace sec="http://marklogic.com/xdmp/security" at 
    "/MarkLogic/security.xqy";

sec:user-get-default-collections("Jim")
=>

http://marklogic.com/jims_modules
http://marklogic.com/jims_docs
  

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