xdmp.ampRoles( namespace-uri as String, localname as String, document-uri as String, database-id as (Number|String) ) as Sequence
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. |
xdmp.ampRoles("http://marklogic.com", "read-docs", "/app/docs.xqy", 239487239487); => Sequence(2349872340, 432987324)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.