O365 - Security And Compliance - Search Deprecated
Deprecated. Use the Microsoft Graph Security - Search And Delete Emails playbook instead. This playbook performs the following steps: 1. Creates a compliance search. 2. Starts a compliance search. 3. Waits for the compliance search to complete. 4. Gets the results of the compliance search as an output. 5. Gets the preview results, if specified.
Microsoft Exchange Online · 15 tasks · 14 inputs · 63 outputs
Details
| ID | O365 - Security And Compliance - Search |
|---|---|
| From Version | 5.5.0 |
| Tasks | 15 |
README
This playbook performs the following steps:
- Creates a compliance search.
- Starts a compliance search.
- Waits for the compliance search to complete.
- Gets the results of the compliance search as an output.
- Gets the preview results, if specified.
Dependencies
This playbook uses the following sub-playbooks, integrations, and scripts.
Sub-playbooks
- GenericPolling
- O365 - Security And Compliance - Search Action - Preview
Integrations
- SecurityAndCompliance
Scripts
- PrintErrorEntry
Commands
- o365-sc-get-search
- o365-sc-new-search
- o365-sc-start-search
- o365-sc-remove-search
Playbook Inputs
| Name | Description | Default Value | Required |
|---|---|---|---|
| search_name | The name of the compliance search. If not specified will have prefix of “XSOAR-“ and GUID e.g. XSOAR-d6228fd0-756b-4e4b-8721-76776df91526. | Optional | |
| force | If false, use the existing search without modifying any search parameters. If true, overwrite the existing search. Possible values are: “true” and “false”. | false | Required |
| preview | Whether to preview results using the search action. Possible values are: “true” and “false”. | false | Required |
| case | The name of a Core eDiscovery case to associate with the new compliance search. | Optional | |
| kql | Text search string or a query that is formatted using the Keyword Query Language (KQL). | Optional | |
| description | Description of the compliance search. | Optional | |
| allow_not_found_exchange_locations | Whether to include mailboxes other than regular user mailboxes in the compliance search. Possible values are: “true” and “false”. | true | Optional |
| exchange_location | Comma-separated list of mailboxes/distribution groups to include, or use the value “All” to include all. | All | Required |
| exchange_location_exclusion | Comma-separated list of mailboxes/distribution groups to exclude when you use the value “All” for the exchange_location parameter. | Optional | |
| public_folder_location | Comma-separated list of public folders to include, or use the value “All” to include all. | Optional | |
| share_point_location | Comma-separated list of SharePoint online sites to include. You can identify the sites by their URL value, or use the value “All” to include all sites. | Optional | |
| share_point_location_exclusion | Comma-separated list of SharePoint online sites to exclude when you use the value “All” for the share_point_location argument. You can identify the sites by their URL value. | Optional | |
| polling_interval | Compliance search polling interval | 3 | Optional |
| polling_timeout | Compliance search polling timeout. | 45 | Optional |
Playbook Outputs
| Path | Description | Type |
|---|---|---|
| O365.SecurityAndCompliance.ContentSearch.Search.AllowNotFoundExchangeLocationsEnabled | Whether to include mailboxes other than regular user mailboxes in the compliance search. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.Search.AzureBatchFrameworkEnabled | Whether the Azure Batch Framework is enabled for job processing. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.Search.CaseId | Identity of a Core eDiscovery case which is associated with the compliance search. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.CaseName | Name of a Core eDiscovery case which is associated with the compliance search. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.ContentMatchQuery | Compliance text search string or a query that is formatted using the Keyword Query Language (KQL). | String |
| O365.SecurityAndCompliance.ContentSearch.Search.CreatedBy | Security and compliance search creator. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.CreatedTime | Security and compliance search creation time. | Date |
| O365.SecurityAndCompliance.ContentSearch.Search.Description | Security and compliance search description. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.Errors | Security and compliance search errors. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.ExchangeLocation | Security and compliance search exchange locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.Identity | Security and compliance search identity. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.IsValid | Whether the security and compliance search is valid. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.Search.Items | Number of security and compliance search scanned items. | Number |
| O365.SecurityAndCompliance.ContentSearch.Search.JobEndTime | Security and compliance search job end time. | Date |
| O365.SecurityAndCompliance.ContentSearch.Search.JobId | Security and compliance search job ID. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.JobRunId | Security and compliance search job run ID. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.JobStartTime | Security and compliance search job run start time. | Date |
| O365.SecurityAndCompliance.ContentSearch.Search.LastModifiedTime | Security and compliance search last modification time. | Date |
| O365.SecurityAndCompliance.ContentSearch.Search.LogLevel | Security and compliance search Azure log level. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.Name | Security and compliance search name. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.OneDriveLocation | Security and compliance search OneDrive locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.OneDriveLocationExclusion | Security and compliance search OneDrive locations to exclude. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.PublicFolderLocation | Security and compliance search public folder locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.PublicFolderLocationExclusion | Security and compliance search public folder locations to exclude. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.RunBy | Security and compliance search last run by UPN (Email representation). | String |
| O365.SecurityAndCompliance.ContentSearch.Search.RunspaceId | Security and compliance search run space ID. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.SharePointLocation | Security and compliance search SharePoint locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.Size | Security and compliance search bytes results size. | Number |
| O365.SecurityAndCompliance.ContentSearch.Search.Status | Security and compliance search status. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.TenantId | Security and compliance search Tenant ID. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.SuccessResults.Location | Security and compliance search result location. | String |
| O365.SecurityAndCompliance.ContentSearch.Search.SuccessResults.ItemsCount | The number of security and compliance search results in the location. | Number |
| O365.SecurityAndCompliance.ContentSearch.Search.SuccessResults.Size | The byte size of the security and compliance search results in the location. | Number |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Action | Security and compliance search action type. Either “Purge” or “Preview”. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.AllowNotFoundExchangeLocationsEnabled | Whether to include mailboxes other than regular user mailboxes in the compliance search. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.AzureBatchFrameworkEnabled | Whether the Azure Batch Framework is enabled for job processing. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.CaseId | Identity of a Core eDiscovery case which is associated with the compliance search. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.CaseName | Name of a Core eDiscovery case which is associated with the compliance search. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.CreatedBy | Security and compliance search action creator. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.CreatedTime | Security and compliance search action creation time. | Date |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Description | Security and compliance search action description. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Errors | Security and compliance search action errors. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.EstimateSearchJobId | Security and compliance search action job ID estimation. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.EstimateSearchRunId | Security and compliance search action run ID estimation. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.ExchangeLocation | Security and compliance search action exchange locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.ExchangeLocationExclusion | Security and compliance search action exchange locations to exclude. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Identity | Security and compliance search action identity. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.IsValid | Whether the security and compliance search action is valid. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.JobEndTime | Security and compliance search action job end time. | Date |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.JobId | Security and compliance search action job ID. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.JobRunId | Security and compliance search action job run ID. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.JobStartTime | Security and compliance search action job start time. | Date |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.LastModifiedTime | Security and compliance search action last modified time. | Date |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Name | Security and compliance search action name. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.PublicFolderLocation | Security and compliance search action public folder locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.PublicFolderLocationExclusion | Security and compliance search action public folder locations to exclude. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.Location | Security and compliance search action result location. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.Sender | Security and compliance search action result mail sender. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.Subject | Security and compliance search action result subject. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.Type | Security and compliance search action result type. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.Size | Security and compliance search action result size. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.ReceivedTime | Security and compliance search action result received time. | Date |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Results.DataLink | Security and compliance search action data link. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Retry | Whether to retry if the search action failed. | Boolean |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.RunBy | Security and compliance search action run by UPN (email address). | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.RunspaceId | Security and compliance search action run space ID. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.SearchName | Security and compliance search action search name. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.SharePointLocation | Security and compliance search action SharePoint locations to include. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.SharePointLocationExclusion | Security and compliance search action SharePoint locations to exclude. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.Status | Security and compliance search action status. Either “Started” or “Completed”. | String |
| O365.SecurityAndCompliance.ContentSearch.SearchAction.TenantId | Security and compliance search action Tenant ID. | String |
Playbook Image

Known Limitations
- Each security and compliance command creates a PSSession (PowerShell session). The security and compliance PowerShell limits the number of concurrent sessions to 3. Since this affects the behavior of multiple playbooks running concurrently it we recommend that you retry failed tasks when using the integration commands in playbooks.
- In order to handle sessions limits, A retry mechanism is applied which will retry for 10 time with 30 sec breaks. (The retry isn’t applied on the generic polling as it’s not supported yet)
- Due to a Microsoft limitation, you can perform a search and purge operation on a maximum of 50,000 mailboxes. To work around this limitation, configure multiple instances of the integration each with different permission filtering so that the number of mailboxes in each instance does not exceed 50,000.
Inputs
search_name— The name of the compliance search.force— If false, use the existing search without modifying any search parameters. If true, overwrite the existing search. Possible values are: "true" and "false".preview— Whether to preview results using the search action. Possible values are: "true" and "false".case— The name of a Core eDiscovery case to associate with the new compliance search.kql— Text search string or a query that is formatted using the Keyword Query Language (KQL).description— Description of the compliance search.allow_not_found_exchange_locations— Whether to include mailboxes other than regular user mailboxes in the compliance search. Possible values are: "true" and "false".exchange_location— Comma-separated list of mailboxes/distribution groups to include, or use the value "All" to include all.exchange_location_exclusion— Comma-separated list of mailboxes/distribution groups to exclude when you use the value "All" for the exchange_location parameter.public_folder_location— Comma-separated list of public folders to include, or use the value "All" to include all.share_point_location— Comma-separated list of SharePoint online sites to include. You can identify the sites by their URL value, or use the value "All" to include all sites.share_point_location_exclusion— Comma-separated list of SharePoint online sites to exclude when you use the value "All" for the share_point_location argument. You can identify the sites by their URL value.polling_interval— Compliance search polling intervalpolling_timeout— Compliance search polling timeout.
Outputs
O365.SecurityAndCompliance.ContentSearch.Search.AllowNotFoundExchangeLocationsEnabled— Whether to include mailboxes other than regular user mailboxes in the compliance search.O365.SecurityAndCompliance.ContentSearch.Search.AzureBatchFrameworkEnabled— Whether the Azure Batch Framework is enabled for job processing.O365.SecurityAndCompliance.ContentSearch.Search.CaseId— Identity of a Core eDiscovery case which is associated with the compliance search.O365.SecurityAndCompliance.ContentSearch.Search.CaseName— Name of a Core eDiscovery case which is associated with the compliance search.O365.SecurityAndCompliance.ContentSearch.Search.ContentMatchQuery— Compliance text search string or a query that is formatted using the Keyword Query Language (KQL).O365.SecurityAndCompliance.ContentSearch.Search.CreatedBy— Security and compliance search creator.O365.SecurityAndCompliance.ContentSearch.Search.CreatedTime— Security and compliance search creation time.O365.SecurityAndCompliance.ContentSearch.Search.Description— Security and compliance search description.O365.SecurityAndCompliance.ContentSearch.Search.Errors— Security and compliance search errors.O365.SecurityAndCompliance.ContentSearch.Search.ExchangeLocation— Security and compliance search exchange locations to include.O365.SecurityAndCompliance.ContentSearch.Search.Identity— Security and compliance search identity.O365.SecurityAndCompliance.ContentSearch.Search.IsValid— Whether the security and compliance search is valid.O365.SecurityAndCompliance.ContentSearch.Search.Items— Number of security and compliance search scanned items.O365.SecurityAndCompliance.ContentSearch.Search.JobEndTime— Security and compliance search job end time.O365.SecurityAndCompliance.ContentSearch.Search.JobId— Security and compliance search job ID.O365.SecurityAndCompliance.ContentSearch.Search.JobRunId— Security and compliance search job run ID.O365.SecurityAndCompliance.ContentSearch.Search.JobStartTime— Security and compliance search job run start time.O365.SecurityAndCompliance.ContentSearch.Search.LastModifiedTime— Security and compliance search last modification time.O365.SecurityAndCompliance.ContentSearch.Search.LogLevel— Security and compliance search Azure log level.O365.SecurityAndCompliance.ContentSearch.Search.Name— Security and compliance search name.O365.SecurityAndCompliance.ContentSearch.Search.OneDriveLocation— Security and compliance search OneDrive locations to include.O365.SecurityAndCompliance.ContentSearch.Search.OneDriveLocationExclusion— Security and compliance search OneDrive locations to exclude.O365.SecurityAndCompliance.ContentSearch.Search.PublicFolderLocation— Security and compliance search public folder locations to include.O365.SecurityAndCompliance.ContentSearch.Search.PublicFolderLocationExclusion— Security and compliance search public folder locations to exclude.O365.SecurityAndCompliance.ContentSearch.Search.RunBy— Security and compliance search last run by UPN (Email representation).O365.SecurityAndCompliance.ContentSearch.Search.RunspaceId— Security and compliance search run space ID.O365.SecurityAndCompliance.ContentSearch.Search.SharePointLocation— Security and compliance search SharePoint locations to include.O365.SecurityAndCompliance.ContentSearch.Search.Size— Security and compliance search bytes results size.O365.SecurityAndCompliance.ContentSearch.Search.Status— Security and compliance search status.O365.SecurityAndCompliance.ContentSearch.Search.TenantId— Security and compliance search Tenant ID.O365.SecurityAndCompliance.ContentSearch.Search.SuccessResults— Security and compliance search results.O365.SecurityAndCompliance.ContentSearch.SearchAction.Action— Security and compliance search action type. Either "Purge" or "Preview".O365.SecurityAndCompliance.ContentSearch.SearchAction.AllowNotFoundExchangeLocationsEnabled— Whether to include mailboxes other than regular user mailboxes in the compliance search.O365.SecurityAndCompliance.ContentSearch.SearchAction.AzureBatchFrameworkEnabled— Whether the Azure Batch Framework is enabled for job processing.O365.SecurityAndCompliance.ContentSearch.SearchAction.CaseId— Identity of a Core eDiscovery case which is associated with the compliance search.O365.SecurityAndCompliance.ContentSearch.SearchAction.CaseName— Name of a Core eDiscovery case which is associated with the compliance search.O365.SecurityAndCompliance.ContentSearch.SearchAction.CreatedBy— Security and compliance search action creator.O365.SecurityAndCompliance.ContentSearch.SearchAction.CreatedTime— Security and compliance search action creation time.O365.SecurityAndCompliance.ContentSearch.SearchAction.Description— Security and compliance search action description.O365.SecurityAndCompliance.ContentSearch.SearchAction.Errors— Security and compliance search action errors.O365.SecurityAndCompliance.ContentSearch.SearchAction.EstimateSearchJobId— Security and compliance search action job ID estimation.O365.SecurityAndCompliance.ContentSearch.SearchAction.EstimateSearchRunId— Security and compliance search action run ID estimation.O365.SecurityAndCompliance.ContentSearch.SearchAction.ExchangeLocation— Security and compliance search action exchange locations to include.O365.SecurityAndCompliance.ContentSearch.SearchAction.ExchangeLocationExclusion— Security and compliance search action exchange locations to exclude.O365.SecurityAndCompliance.ContentSearch.SearchAction.Identity— Security and compliance search action identity.O365.SecurityAndCompliance.ContentSearch.SearchAction.IsValid— Whether the security and compliance search action is valid.O365.SecurityAndCompliance.ContentSearch.SearchAction.JobEndTime— Security and compliance search action job end time.O365.SecurityAndCompliance.ContentSearch.SearchAction.JobId— Security and compliance search action job ID.O365.SecurityAndCompliance.ContentSearch.SearchAction.JobRunId— Security and compliance search action job run ID.O365.SecurityAndCompliance.ContentSearch.SearchAction.JobStartTime— Security and compliance search action job start time.O365.SecurityAndCompliance.ContentSearch.SearchAction.LastModifiedTime— Security and compliance search action last modified time.O365.SecurityAndCompliance.ContentSearch.SearchAction.Name— Security and compliance search action name.O365.SecurityAndCompliance.ContentSearch.SearchAction.PublicFolderLocation— Security and compliance search action public folder locations to include.O365.SecurityAndCompliance.ContentSearch.SearchAction.PublicFolderLocationExclusion— Security and compliance search action public folder locations to exclude.O365.SecurityAndCompliance.ContentSearch.SearchAction.Results— Security and compliance search action results.O365.SecurityAndCompliance.ContentSearch.SearchAction.Retry— Whether to retry if the search action failed.O365.SecurityAndCompliance.ContentSearch.SearchAction.RunBy— Security and compliance search action run by UPN (email address).O365.SecurityAndCompliance.ContentSearch.SearchAction.RunspaceId— Security and compliance search action run space ID.O365.SecurityAndCompliance.ContentSearch.SearchAction.SearchName— Security and compliance search action search name.O365.SecurityAndCompliance.ContentSearch.SearchAction.SharePointLocation— Security and compliance search action SharePoint locations to include.O365.SecurityAndCompliance.ContentSearch.SearchAction.SharePointLocationExclusion— Security and compliance search action SharePoint locations to exclude.O365.SecurityAndCompliance.ContentSearch.SearchAction.Status— Security and compliance search action status. Either "Started" or "Completed".O365.SecurityAndCompliance.ContentSearch.SearchAction.TenantId— Security and compliance search action Tenant ID.
Commands used
o365-sc-get-search
o365-sc-new-search
o365-sc-remove-search
o365-sc-start-search
Flowchart
Source
playbook-O365-SecurityAndCompliance-Search.yml playbook-O365-SecurityAndCompliance-SearchAction-Delete.yml playbook-O365-SecurityAndCompliance-SearchAction-Delete_README.md playbook-O365-SecurityAndCompliance-SearchAction-Preview.yml playbook-O365-SecurityAndCompliance-SearchAction-Preview_README.md playbook-O365-SecurityAndCompliance-SearchAndDelete.yml playbook-O365-SecurityAndCompliance-SearchAndDelete_README.mddeprecated: true description: |- Deprecated. Use the Microsoft Graph Security - Search And Delete Emails playbook instead. This playbook perform: 1. Creates a new compliance search action - Preview (Base on created compliance search). 2. Waits for the preview action to complete. 3. Retrieves the preview results. id: O365 - Security And Compliance - Search Action - Preview inputs: - key: search_name value: {} required: true description: The name of the compliance search. playbookInputQuery: - key: polling_interval value: simple: "1" required: false description: Search action polling interval. playbookInputQuery: - key: polling_timeout value: simple: "10" required: false description: Search action polling timeout. playbookInputQuery: name: O365 - Security And Compliance - Search Action - Preview outputs: - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Action description: Security and compliance search action type. Either "Purge" or "Preview". type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.AllowNotFoundExchangeLocationsEnabled description: Whether to include mailboxes other than regular user mailboxes in the compliance search. type: Boolean - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.AzureBatchFrameworkEnabled description: Whether the Azure Batch Framework is enabled for job processing. type: Boolean - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.CaseId description: Identity of a Core eDiscovery case which is associated with the compliance search. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.CaseName description: Name of a Core eDiscovery case which is associated with the compliance search. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.CreatedBy description: Security and compliance search action creator. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.CreatedTime description: Security and compliance search action creation time. type: Date - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Description description: Security and compliance search action description. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Errors description: Security and compliance search action errors. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.EstimateSearchJobId description: Security and compliance search action job ID estimation. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.EstimateSearchRunId description: Security and compliance search action run ID estimation. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.ExchangeLocation description: Security and compliance search action exchange locations to include. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.ExchangeLocationExclusion description: Security and compliance search action exchange locations to exclude. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Identity description: Security and compliance search action identity. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.IsValid description: Whether the security and compliance search action is valid. type: Boolean - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.JobEndTime description: Security and compliance search action job end time. type: Date - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.JobId description: Security and compliance search action job ID. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.JobRunId description: Security and compliance search action job run ID. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.JobStartTime description: Security and compliance search action job start time. type: Date - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.LastModifiedTime description: Security and compliance search action last modified time. type: Date - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Name description: Security and compliance search action name. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.PublicFolderLocation description: Security and compliance search action public folder locations to include. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.PublicFolderLocationExclusion description: Security and compliance search action public folder locations to exclude. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Results description: Security and compliance search action results. type: unknown - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Retry description: Whether to retry if the search action failed. type: Boolean - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.RunBy description: Security and compliance search action run by UPN (email address). type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.RunspaceId description: Security and compliance search action run space ID. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.SearchName description: Security and compliance search action search name. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.SharePointLocation description: Security and compliance search action SharePoint locations to include. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.SharePointLocationExclusion description: Security and compliance search action SharePoint locations to exclude. type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.Status description: Security and compliance search action status. Either "Started" or "Completed". type: String - contextPath: O365.SecurityAndCompliance.ContentSearch.SearchAction.TenantId description: Security and compliance search action Tenant ID. type: String starttaskid: "0" tasks: "0": id: "0" taskid: e9df5f91-1e9e-4fa8-87eb-6f0df3714bc1 type: start task: id: e9df5f91-1e9e-4fa8-87eb-6f0df3714bc1 version: -1 name: "" iscommand: false brand: "" description: '' nexttasks: '#none#': - "6" separatecontext: false view: |- { "position": { "x": 50, "y": 50 } } note: false timertriggers: [] ignoreworker: false skipunavailable: false quietmode: 0 isoversize: false isautoswitchedtoquietmode: false continueonerrortype: "" "3": id: "3" taskid: 3465b210-3e8c-4e68-82d8-a71d09b64106 type: playbook task: id: 3465b210-3e8c-4e68-82d8-a71d09b64106 version: -1 name: Waiting for search action to complete description: |- Use this playbook as a sub-playbook to block execution of the master playbook until a remote action is complete. This playbook implements polling by continuously running the command in Step \#2 until the operation completes. The remote action should have the following structure: 1. Initiate the operation. 2. Poll to check if the operation completed. 3. (optional) Get the results of the operation. playbookName: GenericPolling type: playbook iscommand: false brand: "" nexttasks: '#none#': - "7" scriptarguments: Ids: complex: root: O365.SecurityAndCompliance.ContentSearch accessor: SearchAction transformers: - operator: DT args: dt: value: simple: '.=val.SearchStatus!=="NotFound" ? val.Name : val.Name + "_Preview"' Interval: simple: ${inputs.polling_interval} PollingCommandArgName: simple: search_action_name PollingCommandName: simple: o365-sc-get-search-action Timeout: simple: ${inputs.polling_timeout} dt: simple: O365.SecurityAndCompliance.ContentSearch.SearchAction(val.Status && val.Status == "InProgress" || val.Status == "Starting" || val.Status == "Purging").Name separatecontext: true loop: iscommand: false exitCondition: "" wait: 1 max: 100 view: |- { "position": { "x": 50, "y": 370 } } note: false timertriggers: [] ignoreworker: false skipunavailable: false quietmode: 0 isoversize: false isautoswitchedtoquietmode: false continueonerrortype: "" "4": id: "4" taskid: a3b5cc33-9b80-4aa9-8413-a5ad3567168c type: title task: id: a3b5cc33-9b80-4aa9-8413-a5ad3567168c version: -1 name: Search action completed. type: title iscommand: false brand: "" description: '' separatecontext: false view: |- { "position": { "x": 50, "y": 720 } } note: false timertriggers: [] ignoreworker: false skipunavailable: false quietmode: 0 isoversize: false isautoswitchedtoquietmode: false continueonerrortype: "" "6": id: "6" taskid: 1a18141a-1cfd-4843-8fc4-2f1db333e66d type: regular task: id: 1a18141a-1cfd-4843-8fc4-2f1db333e66d version: -1 name: Search action - Preview description: After you create a content search using the !o365-sc-new-search command and run it using the !o365-sc-start-search command, you assign a search action to the search using the !o365-sc-new-search-action command. script: '|||o365-sc-new-search-action' type: regular iscommand: true brand: "" nexttasks: '#none#': - "3" '#error#': - "8" scriptarguments: action: simple: Preview retry-count: simple: "10" search_name: complex: root: inputs.search_name separatecontext: false view: |- { "position": { "x": 50, "y": 195 } } note: false timertriggers: [] ignoreworker: false skipunavailable: false quietmode: 0 isoversize: false isautoswitchedtoquietmode: false continueonerror: true continueonerrortype: errorPath "7": id: "7" taskid: 84d44b24-58e7-49aa-8747-b9f0cbf9bb5f type: regular task: id: 84d44b24-58e7-49aa-8747-b9f0cbf9bb5f version: -1 name: Get preview results description: Get the compliance search action from the Security & Compliance Center. script: '|||o365-sc-get-search-action' type: regular iscommand: true brand: "" nexttasks: '#none#': - "4" scriptarguments: export: simple: "true" results: simple: "true" retry-count: simple: "10" search_action_name: complex: root: O365.SecurityAndCompliance.ContentSearch.SearchAction accessor: Name separatecontext: false view: |- { "position": { "x": 50, "y": 545 } } note: false timertriggers: [] ignoreworker: false skipunavailable: false quietmode: 0 isoversize: false isautoswitchedtoquietmode: false continueonerrortype: "" "8": id: "8" taskid: 4c31505d-360d-4069-af68-09ad2c63e5b3 type: regular task: id: 4c31505d-360d-4069-af68-09ad2c63e5b3 version: -1 name: Search preview is not supported description: Prints text to war room (Markdown supported) scriptName: Print type: regular iscommand: false brand: "" nexttasks: '#none#': - "4" scriptarguments: value: simple: Email search preview could not be completed. This parameter is functional only in on-premises Exchange. separatecontext: false continueonerrortype: "" view: |- { "position": { "x": 540, "y": 370 } } note: false timertriggers: [] ignoreworker: false skipunavailable: false quietmode: 0 isoversize: false isautoswitchedtoquietmode: false view: |- { "linkLabelsPosition": {}, "paper": { "dimensions": { "height": 730, "width": 870, "x": 50, "y": 50 } } } version: -1 fromversion: 5.5.0 tests: - No tests (deprecated) supportedModules: - agentix - cloud - xsiam - edr - cloud_runtime_security contentitemexportablefields: contentitemfields: {}