# IRPCEventsAdmin.GetEvents

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetEvents/

Badges: `Administration API / specialized` `admin` `session`

Gets all events of the vault.

- **Service:** [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md) `MFiles.IRPCEventsAdmin`
- **gRPC method:** `/MFiles.IRPCEventsAdmin/GetEvents`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-events`
- **Request:** [`GetEventsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetEvents/index.md#request)
- **Response:** [`GetEventsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetEvents/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Prefer [GetEventsRange](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetEventsRange/index.md): it pages and filters.
- In M-Files Server 26.11 the call fails with a database error ("Failed to prepare the SQL
  statement."). Use GetEventsRange.
- Requires a vault session, the vault right `manage_events`, and `client_data.version` set at
  login (see the service overview). Fails with "Your event log request exceeds the maximum data
  size." when the log is large.

<a id="request"></a>

## Request: GetEventsRequest

No fields.

<a id="response"></a>

## Response: GetEventsResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `values[]` | repeated [`Event`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Event/index.md) | The events, newest first. See [Event](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Event/index.md). |
| `values[].id` | `int64` | The ID of the event. |
| `values[].type` | [`EventType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.EventType/index.md) | The type of the event. |
| `values[].category` | [`EventCategory`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.EventCategory/index.md) | The category of the event. Values: `EVENT_CATEGORY_UNDEFINED` (0), `EVENT_CATEGORY_FILE_ACCESS` (1), `EVENT_CATEGORY_OBJECT_CHANGE` (2), `EVENT_CATEGORY_NEW_OBJECT` (3), `EVENT_CATEGORY_OBJECT_OPERATION` (4), `EVENT_CATEGORY_SYSTEM` (5), `EVENT_CATEGORY_REQUEST` (6), `EVENT_CATEGORY_METADATA_STRUCTURE_CHANGE` (7), `EVENT_CATEGORY_PUBLIC_LINK` (8), `EVENT_CATEGORY_CUSTOM_EVENT` (9). |
| `values[].timestamp_utc` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | The timestamp of this event. |
| `values[].caused_by_user` | `string` | The account name of the user whose activity lead to this event. If no user (this is a system operation), this is an empty string. |
| `values[].caused_by_user_full_name` | `string` | The full name of the user whose activity lead to this event. If no user (this is a system operation), this is an empty string. |
| `values[].caused_by_user_id` | `int32` | The ID of the user account whose activity lead to this event. If no user (this is a system operation), this is zero. |
| `values[].data` | [`EventTypeSpecificDataUnion`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md) | Additional event type -specific data as a union. |
| `values[].data.file_accessed` | [`EventTypeSpecificDataUnion.FileAccessedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-FileAccessedData) (oneof data) |   |
| `values[].data.object_changed` | [`EventTypeSpecificDataUnion.ObjectChangedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-ObjectChangedData) (oneof data) |   |
| `values[].data.object_created` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.rolled_back` | [`EventTypeSpecificDataUnion.RolledBackData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-RolledBackData) (oneof data) |   |
| `values[].data.checked_out` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.checked_in` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.checkout_undone` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.object_deleted` | [`BasicDocInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocInfo/index.md) (oneof data) |   |
| `values[].data.object_version_destroyed` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.object_destroyed` | [`BasicDocInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocInfo/index.md) (oneof data) |   |
| `values[].data.logged_in` | [`EventTypeSpecificDataUnion.LoggedInData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-LoggedInData) (oneof data) |   |
| `values[].data.logged_out` | [`EventTypeSpecificDataUnion.LoggedOutData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-LoggedOutData) (oneof data) |   |
| `values[].data.backup_started` | [`EventTypeSpecificDataUnion.BackupStartedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-BackupStartedData) (oneof data) |   |
| `values[].data.backup_completed` | [`EventTypeSpecificDataUnion.BackupCompletedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-BackupCompletedData) (oneof data) |   |
| `values[].data.check_in_requested` | [`BasicDocInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocInfo/index.md) (oneof data) |   |
| `values[].data.assigned` | [`EventTypeSpecificDataUnion.AssignedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-AssignedData) (oneof data) |   |
| `values[].data.free_request` | [`EventTypeSpecificDataUnion.FreeRequestData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-FreeRequestData) (oneof data) |   |
| `values[].data.assigned_to` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.completed_by` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.assignment_approved_by` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.assignment_rejected_by` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.state_changed` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.object_notification` | [`EventTypeSpecificDataUnion.ObjectNotificationData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-ObjectNotificationData) (oneof data) |   |
| `values[].data.object_undeleted` | [`BasicDocInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocInfo/index.md) (oneof data) | Information on the concerned object. |
| `values[].data.user_added` | [`BasicUserAccountInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicUserAccountInfo/index.md) (oneof data) | Information on the concerned user account. |
| `values[].data.user_changed` | [`BasicUserAccountInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicUserAccountInfo/index.md) (oneof data) | Information on the concerned user account. |
| `values[].data.user_deleted` | [`BasicUserAccountInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicUserAccountInfo/index.md) (oneof data) | Information on the concerned user account. |
| `values[].data.user_group_added` | [`BasicUserGroupInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicUserGroupInfo/index.md) (oneof data) | Information on the concerned user group. |
| `values[].data.user_group_changed` | [`BasicUserGroupInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicUserGroupInfo/index.md) (oneof data) | Information on the concerned user group. |
| `values[].data.user_group_deleted` | [`BasicUserGroupInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicUserGroupInfo/index.md) (oneof data) | Information on the concerned user group. |
| `values[].data.event_log_exported` | [`EventTypeSpecificDataUnion.EventLogExportedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-EventLogExportedData) (oneof data) |   |
| `values[].data.event_log_cleared` | [`EventTypeSpecificDataUnion.EventLogClearedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-EventLogClearedData) (oneof data) |   |
| `values[].data.vault_restored` | [`VaultBasic`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultBasic/index.md) (oneof data) | The basic definition of the concerned vault. |
| `values[].data.vault_created` | [`VaultBasic`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.VaultBasic/index.md) (oneof data) | The basic definition of the concerned vault. |
| `values[].data.state_transition_signature_settings_added` | [`StateTransitionSignatureSettingsForEvents`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateTransitionSignatureSettingsForEvents/index.md) (oneof data) | The concerned workflow state transition settings. |
| `values[].data.state_transition_signature_settings_changed` | [`StateTransitionSignatureSettingsForEvents`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateTransitionSignatureSettingsForEvents/index.md) (oneof data) | The concerned workflow state transition settings. |
| `values[].data.state_transition_signature_settings_removed` | [`StateTransitionSignatureSettingsForEvents`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateTransitionSignatureSettingsForEvents/index.md) (oneof data) | The concerned workflow state transition settings. |
| `values[].data.vault_variable_changed` | [`EventTypeSpecificDataUnion.VaultVariableChangedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-VaultVariableChangedData) (oneof data) |   |
| `values[].data.vault_copied` | [`EventTypeSpecificDataUnion.VaultCopiedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-VaultCopiedData) (oneof data) |   |
| `values[].data.license_prevented_advanced_event_log` | [`EventTypeSpecificDataUnion.LicensePreventedAdvancedEventLogData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-LicensePreventedAdvancedEventLogData) (oneof data) |   |
| `values[].data.public_link_created` | [`EventTypeSpecificDataUnion.PublicLinkCreatedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-PublicLinkCreatedData) (oneof data) |   |
| `values[].data.public_link_file_downloaded` | [`EventTypeSpecificDataUnion.PublicLinkFileDownloadedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-PublicLinkFileDownloadedData) (oneof data) |   |
| `values[].data.public_link_deleted` | [`EventTypeSpecificDataUnion.PublicLinkDeletedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-PublicLinkDeletedData) (oneof data) |   |
| `values[].data.public_link_accessed` | [`EventTypeSpecificDataUnion.PublicLinkAccessedData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-PublicLinkAccessedData) (oneof data) |   |
| `values[].data.conflict_resolved_in_favor_of_incoming_changes` | [`EventTypeSpecificDataUnion.ConflictResolvedInFavorOfIncomingChangesData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-ConflictResolvedInFavorOfIncomingChangesData) (oneof data) |   |
| `values[].data.conflict_resolved_in_favor_of_local_changes` | [`EventTypeSpecificDataUnion.ConflictResolvedInFavorOfLocalChangesData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-ConflictResolvedInFavorOfLocalChangesData) (oneof data) |   |
| `values[].data.discarded_conflict_changes_restored_as_new_version` | [`EventTypeSpecificDataUnion.DiscardedConflictChangesRestoredAsNewVersionData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeSpecificDataUnion/index.md#t-DiscardedConflictChangesRestoredAsNewVersionData) (oneof data) |   |
| `values[].data.user_mentioned_in_comment` | [`BasicDocVerInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicDocVerInfo/index.md) (oneof data) |   |
| `values[].data.vault_login_account_added` | [`BasicVaultLoginAccountInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicVaultLoginAccountInfo/index.md) (oneof data) | Information on the concerned vault login account. |
| `values[].data.vault_login_account_changed` | [`BasicVaultLoginAccountInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicVaultLoginAccountInfo/index.md) (oneof data) | Information on the concerned vault login account. |
| `values[].data.vault_login_account_deleted` | [`BasicVaultLoginAccountInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.BasicVaultLoginAccountInfo/index.md) (oneof data) | Information on the concerned vault login account. |
| `values[].data.external_link_access_type_changed` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the access-type-changed event. |
| `values[].data.external_link_anyone_with_link_expiration_updated` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the anyone-with-the-link expiration-updated event. |
| `values[].data.external_link_visitors_added` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the visitors-added event. |
| `values[].data.external_link_visitors_removed` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the visitors-removed event. |
| `values[].data.external_link_visitor_expiration_updated` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the visitor expiration-updated event. |
| `values[].data.external_link_accessed_by_visitor` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the accessed-by-visitor event. |
| `values[].data.external_link_manage_visitors_viewed` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the manage-visitors-dialog-viewed event. |
| `values[].data.external_link_visitors_viewed` | [`ExternalLinkEventData`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalLinkEventData/index.md) (oneof data) | Shared-link data for the visitors-viewed event. |
| `values[].notification_created` | `bool` | Tells if the notifications have been created. |
| `values[].notification_object_info` | [`DocumentInfoForNotifications`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.DocumentInfoForNotifications/index.md) | Document info. This is valid only until the notifications have been created. |
| `values[].notification_object_info.object_info` | [`ObjectVersionEx`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectVersionEx/index.md) | Document information. |
| `values[].notification_object_info.properties[]` | repeated [`PropertyValue`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyValue/index.md) | Document properties. |
| `values[].notification_object_info.acl` | [`ACLWithNames`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ACLWithNames/index.md) | Document access control list. |
| `values[].notification_object_info.old_properties[]` | repeated [`PropertyValue`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyValue/index.md) | Old document properties. Used with some events only. |
| `values[].notification_object_info.old_acl` | [`ACLWithNames`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ACLWithNames/index.md) | Document access control list. Used with some events only. |
| `values[].notification_object_info.property_acls[]` | repeated [`PVACL`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PVACL/index.md) | ACLs for property values. |
| `values[].notification_object_info.old_property_acls[]` | repeated [`PVACL`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PVACL/index.md) | ACLs for old property values. |
| `values[].notification_object_info.translated_lookup_names[]` | repeated [`ItemNames`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemNames/index.md) | Translated names for lookups. |
| `values[].xml_data` | `string` | The data represented in XML. |

<a id="related"></a>

## Related methods

- [GetEventsRange](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetEventsRange/index.md): Gets events by ID range and filters, oldest or newest first, with an optional maximum count.
