Event administration (IRPCEventsAdmin)

View as Markdown

Reads, exports and deletes the vault's event log, turns event logging on or off, and stores the caller's saved event log filters.

MFAdmin uses this interface to admininistrate events.

gRPC serviceMFiles.IRPCEventsAdmin
Book and levelAdministration API, specialized
Methods13
Proto filemfiles/IRPCEventsAdmin.proto

Overview

M-Files Admin uses this service for the vault's event log: viewing, exporting and clearing it. Every method needs a vault session and the vault right manage_events (part of full control); a normal user gets "Access denied." (0x800407E4 with reason 0x800400A9).

Client version. GetEventsRange and GetEvents fail with "The installed M-Files client version is older than the M-Files Server version." (0x80040930) unless the session was opened with client_data.version 12.0.5192.0 or newer. Log in with client_data.version set to the server_version from QueryVersion.

-1 means "no filter". Event ID bounds and object filters use -1 for "not set". The proto3 default 0 is a real value: a request left at its defaults matches no events.

Advanced event log features (21 CFR Part 11 compliance): when they are enabled in the vault, event logging cannot be turned off and ClearEvents is refused; DeleteEventsRange still works.

Methods

MethodSummaryFacts
ClearEventsDeletes all events of the vault.admin session
DeleteEventLogFiltersDeletes saved event log filters of the calling user by ID.admin session idempotent
DeleteEventsRangeDeletes the events whose IDs are in the given range.admin session
EnableEventLoggingTurns event logging of the vault on or off.admin session idempotent
EventsExportedRecords in the event log that a range of events was exported.admin session
GetEventLogFilterRecordGets the conditions of the calling user's default event log filter.admin session idempotent
GetEventLogFiltersGets the event log filters saved by the calling user.admin session idempotent
GetEventsGets all events of the vault.admin session
GetEventsRangeGets events by ID range and filters, oldest or newest first, with an optional maximum count.admin session idempotent
GetMinAndMaxEventIDsGets the smallest and largest event ID in the vault's event log.admin session
IsEventLoggingEnabledTells whether event logging is on in the vault.admin session idempotent
SaveEventLogFilterSaves a named event log filter for the calling user.admin session idempotent
UpdateEventLogFilterDefaultValueMakes a saved event log filter the user's default filter, or clears its default flag.admin session idempotent