Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:passive-security-assert

xdmp:passive-security-assert(
   $privileges as xs:string*,
   $kind as xs:string
) as empty-sequence()

Summary

Tests whether the current user has at least one of a given set of privileges. Raises an error if the user does not have any of the privileges. Ignore undefined privileges.

Parameters
privileges The set of privilege URIs. These are the action URIs for the privileges, not the names of the privileges.
kind The kind of privileges (either "execute" or "uri").

Example

xdmp:passive-security-assert("http://my-function/function-foo", "execute")

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