Loading TOC...

xdmp.securityAssert

xdmp.securityAssert(
   $privileges as String[],
   $kind as String
) as null

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.

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.securityAssert("http://my-function/function-foo", "execute");

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy