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 Name | Description | Required |
---|---|---|
User ID user_id | The user ID to list events for. If not provided, events for all users will be returned. | - |
Start Time start_time | The start time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). | - |
End Time end_time | The end time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). | - |
Limit limit | The maximum number of events to retrieve. Default: 1000 | Yes |
Returns
A JSON array of events.
Required Secrets
Secret Placeholder | Description |
---|---|
OKTA_SECRET | Okta secret. See Okta setup |
SDK Example
events = list_okta_events(
secrets={"OKTA_SECRET": "my_stored_okta_secret"}
)