MarkLogic 10 Product Documentation
sec:role-get-default-collections

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

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 :)
xquery version "1.0-ml";
import module namespace sec="http://marklogic.com/xdmp/security" at 
    "/MarkLogic/security.xqy";

sec:role-get-default-collections("Developer")
=>

http://marklogic.com/dev_modules
http://marklogic.com/dev_docs
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy