Integrations
1Password
APIs
List Audit Events

List Audit Events

This endpoint returns information about actions performed by team members within a 1Password account. Events include when an action was performed and by whom, along with details about the type and object of the action and any other information about the activity.

For more information on the 1Password API, see 1Password Documentation (opens in a new tab).

SDK Import:

from admyral.actions import list_1password_audit_events

Arguments:

Argument NameDescriptionRequired
Action Type Filter action_type_filterFilter audit events by an action type.-
Object Type Filter object_type_filterFilter audit events by an object type.-
Start Time start_timeThe date and time to start retrieving events in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). If not specified, start_time will default to one hour before specified end_time. If no end_time is specified, start_time will default to one hour ago.-
End Time end_timeThe date and time to stop retrieving events in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).-
Limit limitThe maximum number of events to retrieve.-

For more information about action and object types in 1Password audit events, see 1Password Events Reporting audit events docs (opens in a new tab).

Returns

A JSON array of alerts.

Required Secrets

Secret PlaceholderDescription
1PASSWORD_SECRET1Password secret. See 1Password setup

SDK Example

alerts = list_1password_audit_events(
    action_type_filter="grant",
    object_type_filter="uva",
	secrets={"1PASSWORD_SECRET": "my_stored_1password_secret"}
)

Example Output:

[
	{
		"uuid": "56YE2TYN2VFYRLNSHKPW5NVT5E",
		"timestamp": "2023-03-15T16:33:50-03:00",
		"actor_uuid": "4HCGRGYCTRQFBMGVEGTABYDU2V",
		"actor_details": {
			"uuid:": "4HCGRGYCTRQFBMGVEGTABYDU2V",
			"name": "Jeff Shiner",
			"email": "jeff_shiner@agilebits.com"
		},
		"action": "join",
		"object_type": "gm",
		"object_uuid": "pf8soyakgngrphytsyjed4ae3u",
		"aux_id": 9277034,
		"aux_uuid": "K6VFYDCJKHGGDI7QFAXX65LCDY",
		"aux_details": {
			"uuid": "K6VFYDCJKHGGDI7QFAXX65LCDY",
			"name": "Wendy Appleseed",
			"email": "wendy_appleseed@agilebits.com"
		},
		"aux_info": "R",
		"session": {
			"uuid": "A5K6COGVRVEJXJW3XQZGS7VAMM",
			"login_time": "2023-03-15T16:33:50-03:00",
			"device_uuid": "lc5fqgbrcm4plajd8mwncv2b3u",
			"ip": "192.0.2.254"
		},
		"location": {
			"country": "Canada",
			"region": "Ontario",
			"city": "Toronto",
			"latitude": 43.5991,
			"longitude": -79.4988
		}
	}
]