eDiscovery.ReadWrite.All
Allows the app to read and write eDiscovery objects such as cases, custodians, review sets and other related objects without a signed-in user.
Permission Details
Read and write all eDiscovery objects
Allows the app to read and write eDiscovery objects such as cases, custodians, review sets and other related objects without a signed-in user.
b2620db1-3bf7-4c5b-9cb9-576d29eac736
Read and write all eDiscovery objects
Allows the app to read and write eDiscovery objects such as cases, custodians, review sets and other related objects on behalf of the signed-in user.
acb8f680-0834-4146-b69e-4ab1b39745ad
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
closedBy |
identitySet |
The user who closed the case. |
closedDateTime |
DateTimeOffsetNullable |
The date and time when the case was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
createdBy |
identitySet |
The user who created the case. |
createdDateTime |
DateTimeOffsetNullable |
The date and time when the entity was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
description |
StringNullable |
The case description. |
displayName |
StringNullable |
The case name. |
externalId |
StringNullable |
The external case number for customer reference. |
id |
String |
The ID for the eDiscovery case. Read-only. |
lastModifiedBy |
identitySet |
The last user who modified the entity. |
lastModifiedDateTime |
DateTimeOffsetNullable |
The latest date and time when the case was modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
status |
ediscovery.caseStatus |
The case status. Possible values are unknown, active, pendingDelete, closing, closed, and closedWithError. For details, see the following table. |
custodians |
ediscovery.custodian collection |
Returns a list of case custodian objects for this case. Nullable. |
legalHolds |
ediscovery.legalHold collection |
Returns a list of case legalHold objects for this case. Nullable. |
noncustodialDataSources |
ediscovery.noncustodialDataSource collection |
Returns a list of case noncustodialDataSource objects for this case. Nullable. |
operations |
ediscovery.caseOperation collection |
Returns a list of case operation objects for this case. Nullable. |
Showing 15 of 19 properties.
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.ediscovery.case",
"description": "String",
"lastModifiedBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"lastModifiedDateTime": "String (timestamp)",
"status": "String",
"closedBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"closedDateTime": "String (timestamp)",
"externalId": "String",
"id": "String (identifier)",
"displayName": "String",
"createdDateTime": "String (timestamp)"
}
Relationships
Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Relationship | Type | Description |
|---|---|---|
custodians |
ediscovery.custodian collection |
Returns a list of case custodian objects for this case. Nullable. |
legalHolds |
ediscovery.legalHold collection |
Returns a list of case legalHold objects for this case. Nullable. |
noncustodialDataSources |
ediscovery.noncustodialDataSource collection |
Returns a list of case noncustodialDataSource objects for this case. Nullable. |
operations |
ediscovery.caseOperation collection |
Returns a list of case operation objects for this case. Nullable. |
reviewSets |
ediscovery.reviewSet collection |
Returns a list of reviewSet objects in the case. Read-only. Nullable. |
caseSettings |
ediscovery.caseSettings collection |
Returns a list of settings objects in the case. Read-only. Nullable. |
sourceCollections |
ediscovery.sourceCollection collection |
Returns a list of sourceCollection objects associated with this case. |
tags |
ediscovery.tag collection |
Returns a list of tag objects associated to this case. |
searches |
ediscoverySearch collection |
Searches configured in the eDiscovery case. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models.Security;
using Microsoft.Graph.Models;
var requestBody = new SiteSource
{
OdataType = "microsoft.graph.security.siteSource",
Site = new Site
{
WebUrl = "https://contoso.sharepoint.com/sites/SecretSite",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.Cases.EdiscoveryCases["{ediscoveryCase-id}"].Searches["{ediscoverySearch-id}"].AdditionalSources.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const dataSource = {
'@odata.type': 'microsoft.graph.security.siteSource',
site: {
webUrl: 'https://contoso.sharepoint.com/sites/SecretSite'
}
};
await client.api('/security/cases/ediscoveryCases/{ediscoveryCaseId}/searches/{ediscoverySearchId}/additionalSources')
.post(dataSource);
Import-Module Microsoft.Graph.Security
$params = @{
"@odata.type" = "microsoft.graph.security.siteSource"
site = @{
webUrl = "https://contoso.sharepoint.com/sites/SecretSite"
}
}
New-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.security.site_source import SiteSource
from msgraph.generated.models.site import Site
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = SiteSource(
odata_type = "microsoft.graph.security.siteSource",
site = Site(
web_url = "https://contoso.sharepoint.com/sites/SecretSite",
),
)
result = await graph_client.security.cases.ediscovery_cases.by_ediscovery_case_id('ediscoveryCase-id').searches.by_ediscovery_search_id('ediscoverySearch-id').additional_sources.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for eDiscovery.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.