Loading TOC...

xdmp.ampRoles

xdmp.ampRoles(
   namespace-uri as String,
   localname as String,
   document-uri as String,
   database-id as (Number|String)
) as Sequence

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.ampRoles("http://marklogic.com",
                 "read-docs",
                 "/app/docs.xqy",
                 239487239487);
=> Sequence(2349872340, 432987324)

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