Skip to content
Connector

Microsoft Purview eDiscovery v2

Run Microsoft Purview eDiscovery cases, holds and searches through Graph

Creates and closes eDiscovery cases, manages custodians and holds, runs searches with estimates, review sets and purges through Microsoft Graph.

@ftnt-dspilleMaintainer v2.0.1 Published Nov 28, 2026
Download .tgz · 45 KB

microsoft-purview-ediscovery-v2_2.0.1.tgz

sha256:62e0120e72cefc5094babda83b7a259a24a872fc86e2681a27ede7ebcc756cbc

Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.

Microsoft Purview eDiscovery v2 runs eDiscovery cases through Microsoft Graph: cases, custodians and their holds, data sources, searches with estimate statistics, review sets, exports, and Graph calls for anything else. Custodian, site and mailbox fields are checked before any request is sent. Errors from Graph are raised with the status and the Graph message.

Live-tested

On FortiSOAR 8.0.1 against a Microsoft 365 test tenant, all 38 operations returned a live success on version 2.0.1. Three results were live errors, and the error is the recorded result:

  • Wait for Search Statistics and Wait for Operation: an estimate operation finished with status failed ("an eDiscovery action did not complete"). The failure is raised as the error; the operation is not hidden.
  • List Case Operations with a search filter: Graph v1.0 case operations do not expose their search, so the filter is refused. List without the filter works.

The purge playbook branches ran on 2.0.1, including the permanent immediate purge.

Not live-tested

  • Purge with the recoverable (soft) option, purged_recoverable: it ran live, but every soft purge left a residual copy of the data in the tenant, the documented purge-index behaviour. The outcome is not proven, so do not rely on a soft purge to remove the data. The permanent immediate purge is live.

Error classes 401, 403, 404 and 429 are replayed offline from the Graph error shape for every operation.

Configuration · 7 fields

  • Tenant ID tenant_id text required

    Microsoft Entra ID tenant (directory) ID or domain.

  • Client ID client_id text required

    Application (client) ID of the Entra ID app registration.

  • Client Secret client_secret password required

    Client secret of the app registration (Certificates & secrets).

  • Graph Host graph_host text

    Microsoft Graph endpoint host. Default: https://graph.microsoft.com; national clouds use their own, for example https://graph.microsoft.us or microsoftgraph.chinacloudapi.cn. The Entra ID authority is matched to the host automatically unless Authority Host is set.

    Default https://graph.microsoft.com

  • Authority Host authority_host text

    Microsoft Entra ID authority host that issues tokens. Default: https://login.microsoftonline.com; national clouds use their own, for example https://login.microsoftonline.us or https://login.chinacloudapi.cn.

  • Verify SSL verify_ssl checkbox

    Specifies whether SSL certificates are to be verified.

    Default true

  • Request Timeout (seconds) timeout text

    Per-request timeout in seconds applied to token and Graph calls.

    Default 60

Operations · 38

  • Health Check
    health_check

    Verify the configuration end to end: acquire a token with the client credentials and read the first page of eDiscovery cases.

    No parameters.

    Returns typeproperties
  • List Cases 2 params
    list_cases

    List the eDiscovery cases of the tenant, optionally filtered by status. Follows @odata.nextLink until Limit items have been collected.

    • Status status select

      (Optional) Only cases with this status.

      Options activependingDeleteclosingclosed
    • Limit limit integer

      (Optional) Stop after this many cases, at most 1000. Default: collect every page.

    Returns typeproperties
  • Create Case 2 params
    create_case

    Create a new eDiscovery case with a display name and an optional description.

    • Display Name display_name text required

      The case name.

    • Description description text

      (Optional) The case description.

    Returns typeproperties
  • Get Case 1 param
    get_case

    Read the properties of one eDiscovery case.

    • Case ID case_id text required

      The id of the case.

    Returns typeproperties
  • Close Case 1 param
    close_case

    Close an eDiscovery case.

    • Case ID case_id text required

      The id of the case to close.

    Returns typeproperties
  • Reopen Case 1 param
    reopen_case

    Reopen a closed eDiscovery case.

    • Case ID case_id text required

      The id of the case to reopen.

    Returns typeproperties
  • Delete Case 1 param
    delete_case

    Delete an eDiscovery case. This is irreversible.

    • Case ID case_id text required

      The id of the case to delete.

    Returns typeproperties
  • Create Custodian 3 params
    create_custodian

    Add a custodian to a case by email address. Graph v1.0 accepts only the email on create; when Apply Hold To Sources is true (default) the connector additionally issues the applyHold action for the new custodian.

    • Case ID case_id text required

      The id of the case.

    • Email email text required

      The custodian's primary SMTP address.

    • Apply Hold To Sources apply_hold_to_sources checkbox

      Start applying hold to the custodian's data sources right after the custodian is added. Default: on.

      Default true

    Returns typeproperties
  • Create Custodians 3 params
    create_custodians

    Add every email address in a comma-separated list as a custodian of the case. Each address is matched against the custodians the case already has first, so a re-run reports those as already present instead of failing on the duplicate; one failing address never aborts the batch - the result list carries a status and, on failure, the error for every email. When Apply Hold To Sources is true…

    • Case ID case_id text required

      The id of the case.

    • Emails emails text required

      Comma-separated custodian SMTP addresses, e.g. 'alice@example.onmicrosoft.com, bob@example.onmicrosoft.com'.

    • Apply Hold To Sources apply_hold_to_sources checkbox

      Start applying hold to the data sources of every custodian this call creates. Default: on.

      Default true

    Returns typeproperties
  • List Custodians 1 param
    list_custodians

    List the custodians of a case, following @odata.nextLink.

    • Case ID case_id text required

      The id of the case.

    Returns typeproperties
  • Get Custodian 2 params
    get_custodian

    Read one custodian of a case, including its current hold status.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian.

    Returns typeproperties
  • Release Custodian 2 params
    release_custodian

    Release a custodian from a case: lifts holds and unbinds their data sources. Returns the release operation.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian to release.

    Returns typeproperties
  • Activate Custodian 2 params
    activate_custodian

    Re-activate a released custodian. Returns the activation operation.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian to activate.

    Returns typeproperties
  • Apply Hold 2 params
    apply_hold

    Start applying hold to the listed custodians: one applyHold call per custodian id. Continues when a single id fails and reports the per-id results.

    • Case ID case_id text required

      The id of the case.

    • Custodian IDs custodian_ids text required

      Comma-separated custodian ids to place on hold.

    Returns typeproperties
  • Remove Hold 2 params
    remove_hold

    Start removing hold from the listed custodians: one removeHold call per custodian id. Continues when a single id fails and reports the per-id results.

    • Case ID case_id text required

      The id of the case.

    • Custodian IDs custodian_ids text required

      Comma-separated custodian ids to release from hold.

    Returns typeproperties
  • Create Custodian User Source 3 params
    create_custodian_user_source

    Add the custodian's mailbox and OneDrive for Business site to the case as a userSource, by SMTP address.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian.

    • Email email text required

      The SMTP address of the user's mailbox.

    Returns typeproperties
  • Create Custodian Site Source 3 params
    create_custodian_site_source

    Add a SharePoint site to the custodian's data sources as a siteSource, by site web URL.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian.

    • Site Web URL site_web_url text required

      The web URL of the SharePoint site.

    Returns typeproperties
  • List Custodian User Sources 2 params
    list_custodian_user_sources

    List the userSources (mailbox and OneDrive) associated with a custodian.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian.

    Returns typeproperties
  • List Custodian Site Sources 2 params
    list_custodian_site_sources

    List the siteSources (SharePoint sites) associated with a custodian.

    • Case ID case_id text required

      The id of the case.

    • Custodian ID custodian_id text required

      The id of the custodian.

    Returns typeproperties
  • Create Non-Custodial Data Source 4 params
    create_noncustodial_data_source

    Add data to the case without associating it with a custodian: either a mailbox (Email) or a SharePoint site (Site Web URL), never both. When Apply Hold To Source is true (default) the applyHold action is issued for the new data source.

    • Case ID case_id text required

      The id of the case.

    • Email email text

      The SMTP address of the mailbox to add. Provide this or Site Web URL.

    • Site Web URL site_web_url text

      The web URL of the SharePoint site to add. Provide this or Email.

    • Apply Hold To Source apply_hold_to_source checkbox

      Start applying hold to the data source right after it is added. Default: on.

      Default true

    Returns typeproperties
  • List Non-Custodial Data Sources 1 param
    list_noncustodial_data_sources

    List the non-custodial data sources of a case, following @odata.nextLink.

    • Case ID case_id text required

      The id of the case.

    Returns typeproperties
  • Create Search 7 params
    create_search

    Create an eDiscovery (draft) search in a case with a KQL content query. Custodian IDs are expanded to each custodian's existing userSources and siteSources and bound through custodianSources@odata.bind; a custodian with no sources yet contributes nothing. Additional Sources entries (user mailboxes or SharePoint sites) are added through the additionalSources collection after creation. Data Source…

    • Case ID case_id text required

      The id of the case.

    • Display Name display_name text required

      The display name of the search.

    • Description description text

      (Optional) The description of the search.

    • Content Query content_query text

      (Optional) The search query in KQL (Keyword Query Language).

    • Data Source Scopes data_source_scopes select

      (Optional) When set, the collection spans an entire workload instead of individually referenced locations.

      Default none

      Options noneallTenantMailboxesallTenantSitesallCaseCustodiansallCaseNoncustodialDataSources
    • Additional Sources additional_sources json

      (Optional) JSON array of extra locations, each an object with type "user" (plus email) or "site" (plus site_web_url).

    • Custodian IDs custodian_ids text

      (Optional) Comma-separated custodian ids whose existing data sources become the custodianSources of the search.

    Returns typeproperties
  • Update Search 6 params
    update_search

    Update the display name, description, KQL content query or data source scopes of an existing search.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search to update.

    • Display Name display_name text

      (Optional) A new display name.

    • Description description text

      (Optional) A new description.

    • Content Query content_query text

      (Optional) A new query in KQL (Keyword Query Language).

    • Data Source Scopes data_source_scopes select

      (Optional) A new workload scope.

      Options noneallTenantMailboxesallTenantSitesallCaseCustodiansallCaseNoncustodialDataSources
    Returns typeproperties
  • List Searches 2 params
    list_searches

    List the searches of a case, following @odata.nextLink until Limit items have been collected.

    • Case ID case_id text required

      The id of the case.

    • Limit limit integer

      (Optional) Stop after this many searches, at most 1000. Default: collect every page.

    Returns typeproperties
  • Get Search 2 params
    get_search

    Read one search, expanding lastEstimateStatisticsOperation so the latest estimate (counts, sizes, progress) is included when one has been run.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search.

    Returns typeproperties
  • Delete Search 2 params
    delete_search

    Delete a search from a case.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search to delete.

    Returns typeproperties
  • Run Estimate Statistics 3 params
    run_estimate_statistics

    Start an estimate of the number and size of items matching the search, and return the created estimate operation (poll it through List Case Operations or Get Search Statistics).

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search to estimate.

    • Statistics Options statistics_options text

      (Optional) Comma-separated options: includeRefiners, includeQueryStats, includeUnindexedStats, advancedIndexing, locationsWithoutHits. Default: includeRefiners,includeQueryStats,includeUnindexedStats,locationsWithoutHits.

    Returns typeproperties
  • Get Search Statistics 2 params
    get_search_statistics

    Read the last estimate statistics of a search: the indexed and unindexed item counts and sizes and the numbers of mailboxes and sites with hits, together with the estimate operation that produced them.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search.

    Returns typeproperties
  • Wait For Search Statistics 4 params
    wait_for_search_statistics

    Estimate a search when it has no recent estimate yet, then wait for the statistics: the search is polled through its lastEstimateStatisticsOperation expansion until the estimate operation reaches succeeded or failed, or the timeout budget runs out. Returns the indexed and unindexed item counts and sizes plus the mailbox and site counts the estimate reported.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search to estimate and wait for.

    • Timeout Seconds timeout_seconds integer

      (Optional) Give up after this many seconds. Default: 300.

      Default 300

    • Poll Seconds poll_seconds integer

      (Optional) Seconds between polls. Default: 10.

      Default 10

    Returns typeproperties
  • Residual Copies 2 params
    residual_copies

    Count the mail copies a search still matches outside Recoverable Items. Runs the search's content query against each custodian's mailbox through the Graph messages search (the app needs Mail.Read with admin consent). Use after a purge: a copy the purge moved to Recoverable Items is not counted; a copy still in a mail folder is. Returns the count per custodian and the total.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search whose content query is checked.

    Returns typeproperties
  • Wait For Operation 4 params
    wait_for_operation

    Poll one long-running case operation (the resource an estimate, purge, export or add-to-review-set action returns) until its status reaches succeeded or failed, or the timeout budget runs out. Returns the operation resource and how long the wait took; a failed operation or a timeout is reported as a clear error.

    • Case ID case_id text required

      The id of the case.

    • Operation ID operation_id text required

      The id of the case operation to poll (the id field of the operation a long-running action returned).

    • Timeout Seconds timeout_seconds integer

      (Optional) Give up after this many seconds. Default: 240.

      Default 240

    • Poll Seconds poll_seconds integer

      (Optional) Seconds between polls. Default: 10.

      Default 10

    Returns typeproperties
  • List Case Operations 2 params
    list_case_operations

    List the long-running operations of a case (estimates, holds, add-to-review-set, exports, purges). A Search ID filter is refused: Graph v1.0 case operations do not expose their search.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text

      (Optional) Only operations bound to this search.

    Returns typeproperties
  • Create Review Set 2 params
    create_review_set

    Create a review set in a case.

    • Case ID case_id text required

      The id of the case.

    • Display Name display_name text required

      The display name of the review set.

    Returns typeproperties
  • List Review Sets 1 param
    list_review_sets

    List the review sets of a case, following @odata.nextLink.

    • Case ID case_id text required

      The id of the case.

    Returns typeproperties
  • Add To Review Set 3 params
    add_to_review_set

    Start adding the results of a search to a review set, and return the created operation.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search whose results are added.

    • Review Set ID review_set_id text required

      The id of the target review set.

    Returns typeproperties
  • Export Result 8 params
    export_result

    Start exporting the results of an estimated search and return the export operation. Once the export has completed, the operation carries exportFileMetadata with a downloadUrl, fileName and size for every export file.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the estimated search to export.

    • Display Name display_name text required

      The display name of the export.

    • Description description text

      (Optional) The description of the export.

    • Export Format export_format select

      (Optional) Format of the exported emails. Default: pst.

      Default pst

      Options pstmsg
    • Cloud Attachment Version cloud_attachment_version select

      (Optional) Versions of cloud attachments to include in messages. Default: latest.

      Default latest

      Options latestrecent10recent100all
    • Document Version document_version select

      (Optional) Versions of SharePoint files to include. Default: latest.

      Default latest

      Options latestrecent10recent100all
    • Export Location export_location select

      (Optional) Scope of partially indexed items in the export. Default: responsiveLocations.

      Default responsiveLocations

      Options responsiveLocationsnonresponsiveLocations
    Returns typeproperties
  • Purge Data 4 params
    purge_data

    Purge the mailbox items or Teams messages matched by a search. Purge Type permanentlyDelete removes the items beyond recovery and recoverable moves them to the recoverable items folder; per Microsoft documentation Teams messages are permanently deleted for both purge types, and at most 100 items per location are purged. This action is destructive.

    • Case ID case_id text required

      The id of the case.

    • Search ID search_id text required

      The id of the search whose matched items are purged.

    • Purge Type purge_type select required

      Controls soft delete or hard delete: recoverable moves items to the recoverable items folder, permanentlyDelete removes them beyond recovery.

      Options permanentlyDeleterecoverable
    • Purge Areas purge_areas select required

      The locations in scope of the purge: mailboxes (Exchange) or teamsMessages (Microsoft Teams).

      Options mailboxesteamsMessages
    Returns typeproperties
  • Execute API Request 4 params
    execute_api_request

    Call any eDiscovery Graph endpoint under /v1.0/security/cases and return the HTTP status code, the body and the Location header. Method is GET, POST, PATCH or DELETE. Path is relative to /v1.0/security/cases (for example ediscoveryCases/<case-id>/searches) or an absolute URL on the configured Graph Host only. Query is an optional JSON object of query options; Body is an optional JSON document…

    • Method method select

      HTTP method of the Graph call. Default GET.

      Options GETPOSTPATCHDELETE
    • Path path text required

      Path relative to /v1.0/security/cases, for example ediscoveryCases/<case-id>/searches/<search-id>. An absolute https URL is accepted only when its host is the configured Graph Host and its path is under /v1.0/security/cases. No query string here; use Query.

    • Query query textarea

      (Optional) JSON object of query options, for example {"$top": 5} or {"$expand": "lastEstimateStatisticsOperation"}.

    • Body body textarea

      (Optional) JSON request body. Only sent with POST or PATCH; rejected for GET and DELETE.

    Returns typeproperties
Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000