Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:group-get-audit-event-type-enabled

xdmp:group-get-audit-event-type-enabled(
   $group-id as xs:unsignedLong,
   $event-type as xs:string
) as xs:boolean

Summary

This function returns the audit event type's enabled setting for the audit configuration. A value of true is returned if both audit has been enabled for group setting and the audit event type has been enabled, Otherwise false is returned.

Parameters
$group-id The ID of the group.
$event-type The event type to check.

Example

xquery version "1.0-ml";
let $group-id := xdmp:group()
return
xdmp:group-get-audit-event-type-enabled($group-id, "mlsp-start")
(: returns the audit event type's enabled setting :)

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