Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.groupGetAuditEventTypeEnabled

xdmp.groupGetAuditEventTypeEnabled(
   groupId as String,
   eventType as String
) as 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
groupId The ID of the group.
eventType The event type to check.

Example

var groupId = xdmp.group()
xdmp.groupGetAuditEventTypeEnabled(groupId, "mlcp-copy-export-start");
=>
true

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