
admin:group-get-audit-event-type-enabled( $config as element(configuration), $group-id as xs:unsignedLong, $event-type as xs:string ) as xs:boolean
This function returns the audit event type's enabled setting
for the audit configuration. A value of true is returned is the
specified event type is set. Otherwise false is returned.
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{id}
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
let $config := admin:get-configuration()
let $groupid := admin:group-get-id($config, "Default")
return
admin:group-get-audit-event-type-enabled($config, $groupid,
"no-permission")
(: returns the new enabled status for the No-Permission event-type :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.