Integrations
Okta
APIs
List Events

List Events (Okta)

Retrieve a list of events from Okta within a specified time range. This API allows filtering events by user ID and supports pagination for large datasets.

For more information on setting up Okta API tokens, see Okta Documentation (opens in a new tab).

SDK Import:

from admyral.actions import list_okta_events

Arguments:

Argument NameDescriptionRequired
User ID user_idThe user ID to list events for. If not provided, events for all users will be returned.-
Start Time start_timeThe start time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).-
End Time end_timeThe end time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).-
Limit limitThe maximum number of events to retrieve. Default: 1000Yes

Returns

A JSON array of events.

Required Secrets

Secret PlaceholderDescription
OKTA_SECRETOkta secret. See Okta setup

SDK Example

events = list_okta_events(
	secrets={"OKTA_SECRET": "my_stored_okta_secret"}
)