> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Events

Get a list of events from the OneLogin account.

**Required Scope**: `Read Users`, `Manage users`, `Read All`, or `Manage All`.

<Note>
  External Documentation

  To learn more, visit the [OneLogin documentation](https://developers.onelogin.com/api-docs/1/events/get-events).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                            |
  | ---------------- | ------------------------------------------------------------------------------------------------------ |
  | Client ID        | The ID of the client to filter by.                                                                     |
  | Directory ID     | The ID of the directory to filter by.                                                                  |
  | Event ID         | The ID of the event to filter by.                                                                      |
  | Event Type ID    | A comma-separated list of event type IDs to filter by. Can be obtained using `Get Event Types` action. |
  | Return All Pages | Automatically fetch all resources, page by page.                                                       |
  | Sort             | The attribute to sort the events by.                                                                   |
  | User ID          | The user ID to filter by.                                                                              |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter  | Description                                                            |
  | ---------- | ---------------------------------------------------------------------- |
  | Created At | The exact creation date to filter by.                                  |
  | Resolution | The resolution status to filter by.                                    |
  | Since      | The date and time to filter events that were created after this date.  |
  | Until      | The date and time to filter events that were created before this date. |
</div>

## Example Output

```json theme={"dark"}
{
	"status": {
		"error": false,
		"code": 200,
		"type": "success",
		"message": "Success"
	},
	"pagination": {
		"before_cursor": null,
		"after_cursor": "xWNjb3VudF9pZDo6OjUzNDEzLS0jI2lkOjo6OTA0MjU3NTQ2",
		"previous_link": null,
		"next_link": "https://subdomain.onelogin.com/api/1/events?after_cursor=..."
	},
	"data": [
		{
			"id": 999999999,
			"created_at": "2014-12-19T02:02:39.276Z",
			"account_id": 55555,
			"user_id": 88888888,
			"event_type_id": 13,
			"notes": null,
			"ipaddr": "11.111.11.111",
			"actor_user_id": 7777777,
			"actor_user_name": "Xavier Wong",
			"user_name": "Xavier Wong",
			"risk_score": null
		}
	]
}
```

## Workflow Library Example

[Get Events with Onelogin and Send Results Via Email](https://library.blinkops.com/workflows/get-events-with-onelogin-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-events-with-onelogin-and-send-results-via-email/canvas" />
</div>
