Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:amp-roles

xdmp:amp-roles(
   $namespace-uri as xs:string,
   $localname as xs:string,
   $document-uri as xs:string,
   $database-id as xs:unsignedLong
) as xs:unsignedLong*

Summary

Returns the set of all roles assigned to an amp, including roles directly assigned to the amp and roles inherited by other roles.

Parameters
namespace-uri The amped function namespace URI.
localname The amped function localname.
document-uri The amped function module URI.
database-id The database ID containing the module.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-amp-roles

Example

xdmp:amp-roles("http://marklogic.com",
                 "read-docs",
                 "/app/docs.xqy",
                 239487239487)
=> (2349872340, 432987324)

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