<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.securityAssert.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.securityAssert</api:function-name><api:suggest>xdmp.securityassert</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>securityassert</api:suggest><api:function-link mode="xquery" fullname="xdmp:security-assert">/apidoc/8.0/xdmp:security-assert.xml</api:function-link><api:function mode="javascript" name="securityAssert" type="builtin" lib="xdmp" category="Security" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.securityAssert"><api: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.
</api:summary><api:params><api:param name="privileges" type="xs:string*"><api:param-description>
    The set of privilege URIs.  These are the action URIs for the privileges,
    not the names of the privileges.
  </api:param-description><api:param-name>privileges</api:param-name><api:param-type>String[]</api:param-type></api:param><api:param name="kind" type="xs:string"><api:param-description>
    The kind of privileges (either "execute" or "uri"). 
  </api:param-description><api:param-name>kind</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.securityAssert("http://my-function/function-foo", "execute");
</pre></api:example></api:function></api:function-page>