> ## 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 TTP Impersonation Protect Logs

Get messages containing information flagged by an `Impersonation Protection` configuration.

Required application permissions: `Monitoring | Impersonation Protection | Read`.

<Note>
  External Documentation

  To learn more, visit the [Mimecast documentation](https://developer.services.mimecast.com/docs/securityevents/1/routes/api/ttp/impersonation/get-logs/post).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                                                                                          |
  | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Search By Actions     | Specify actions to search by.                                                                                                                        |
  | Search By Field       | Specify the field to be used for filtering the `Search Query`.<br /><br />**Note**: If this parameter is provided, `Search Query` must be specified. |
  | Search By Identifiers | Search logs by identifiers.                                                                                                                          |
  | Search Query          | Provide a query to search in the logs.<br /><br />**Note**: If `Search By Field` is provided, this parameter must be specified.                      |
  | Tagged Malicious      | Determines whether to return only messages that are tagged as malicious.                                                                             |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                    |
  | -------------------- | ------------------------------------------------------------------------------ |
  | Search By End Date   | The end date of logs to return. The default is the execution time.             |
  | Search By Start Date | The start date of logs to return. The default is the start of the current day. |
  | Sort Descending      | Determines whether to order results with the most recent first.                |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"impersonationLogs": [
			{
				"action": "string",
				"definition": "string",
				"eventTime": "yyyy-MM-dd'T'HH:mm:ssZ",
				"hits": 0,
				"id": "string",
				"identifiers": [
					"similar_internal_domain",
					"newly_observed_domain",
					"internal_user_name",
					"reply_address_mismatch",
					"targeted_threat_dictionary",
					"custom_external_domain",
					"mimecast_external_domain",
					"advanced_similar_internal_domain",
					"advanced_custom_external_domain",
					"advanced_mimecast_external_domain",
					"custom_name_list"
				],
				"impersonationResults": [
					"string"
				],
				"messageId": "string",
				"recipientAddress": "string",
				"senderAddress": "string",
				"senderIpAddress": "string",
				"subject": "string",
				"taggedExternal": true,
				"taggedMalicious": true
			}
		],
		"resultCount": 0
	},
	"fail": [
		{
			"errors": [
				{
					"code": "string",
					"message": "string",
					"retryable": true
				}
			],
			"key": {
				"actions": [
					"hold",
					"bounce",
					"none"
				],
				"from": "yyyy-MM-dd'T'HH:mm:ssZ",
				"identifiers": [
					"similar_internal_domain",
					"newly_observed_domain",
					"internal_user_name",
					"reply_address_mismatch",
					"targeted_threat_dictionary",
					"custom_external_domain",
					"mimecast_external_domain",
					"advanced_similar_internal_domain",
					"advanced_custom_external_domain",
					"advanced_mimecast_external_domain",
					"custom_name_list"
				],
				"oldestFirst": true,
				"query": "string",
				"searchField": "all",
				"taggedMalicious": false,
				"to": "yyyy-MM-dd'T'HH:mm:ssZ"
			}
		}
	]
}
```

## Workflow Library Example

[Get Ttp Impersonation Protect Logs with Mimecast and Send Results Via Email](https://library.blinkops.com/workflows/get-ttp-impersonation-protect-logs-with-mimecast-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-ttp-impersonation-protect-logs-with-mimecast-and-send-results-via-email/canvas" />
</div>
