Skip to content

auditLog

Fetch paginated audit log.

Arguments

acting_user_id · ID · Use this to retrieve the log of all the actions taken by a specific user. Leave blank for all users.
resource_name · AuditEventResourceName · Use this in conjunction with the resource_id to retrieve the audit log of a specific resource. Leave blank for all resources.
resource_id · ID · Use this in conjunction with the resource_name to retrieve the audit log of a specific resource. Leave blank for all resources.
event_type · AuditEventType · Use this to filter by the type of audit event.
occurred_after · ISO8601DateTime · When passed in, only audit events that occurred after the specified DateTime are returned.
occurred_before · ISO8601DateTime · When passed in, only audit events that occurred before the specified DateTime are returned.
page_size · Int · The number of events to return at one time. Defaults to 50. Maximum of 100.
after · Cursor · Cursor to fetch results after

Returns

[AuditEvent!]

Example

query auditLog(
$acting_user_id: ID
$resource_name: AuditEventResourceName
$resource_id: ID
$event_type: AuditEventType
$occurred_after: ISO8601DateTime
$occurred_before: ISO8601DateTime
$order_by: AuditEventOrderKeys
$offset: Int
$page_size: Int
$after: Cursor
) {
auditLog(
acting_user_id: $acting_user_id
resource_name: $resource_name
resource_id: $resource_id
event_type: $event_type
occurred_after: $occurred_after
occurred_before: $occurred_before
order_by: $order_by
offset: $offset
page_size: $page_size
after: $after
) {
acting_user
cursor
occurred_at
resource_changes
resource_id
resource_name
type
}
}