Application Delegated Admin consent required Data checked
SecurityIncident.ReadWrite.All
- Resource
- SecurityIncident what it applies to
- Access
- ReadWrite read and change
- Scope
- All every item in the tenant, not just the signed-in user's
Allows the app to read and write security incidents, on behalf of the signed-in user.
As an application permission: Allows the app to read and write to all security incidents, without a signed-in user.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /security 4 | ||||
| GET | AD | |||
| GET | / | AD | — | |
| PATCH | / | AD | — | |
| POST | / | AD | — | |
| No APIs match these filters. | ||||
A = application, D = delegated. Path parameters are shortened to {id} and duplicate paths are merged. Least privileged flags come from Microsoft's docs and permissions reference.
Microsoft Graph PowerShell cmdlets that call the APIs above. Connect with Connect-MgGraph -Scopes SecurityIncident.ReadWrite.All.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgSecurityIncident | Security | GET /security/incidents, GET /security/incidents/{id} |
| Update-MgSecurityIncident | Security | PATCH /security/incidents/{id} |
| Get-MgBetaSecurityIncident | Beta.Security | GET /security/incidents, GET /security/incidents/{id} |
| Update-MgBetaSecurityIncident | Beta.Security | PATCH /security/incidents/{id} |
Granting SecurityIncident.ReadWrite.All lets an app read and change these Microsoft Graph resources in your tenant.
alertGraph reference
| Property | Type | Description |
|---|---|---|
| actorDisplayName | String | The adversary or activity group that is associated with this alert. |
| additionalData | microsoft.graph.security.dictionary | A collection of other alert properties, including user-defined properties. Any custom details defined in the alert, and any dynamic content in the alert details, are stored here. |
| alertPolicyId | String | The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. |
| alertWebUrl | String | URL for the Microsoft 365 Defender portal alert page. |
| assignedTo | String | Owner of the alert, or null if no owner is assigned. |
| categories | String collection | The attack kill-chain categories that the alert belongs to. Aligned with the MITRE ATT&CK framework. |
| classification | microsoft.graph.security.alertClassification | Specifies whether the alert represents a true threat. The possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. |
| comments | microsoft.graph.security.alertComment collection | Array of comments created by the Security Operations (SecOps) team during the alert management process. |
| createdDateTime | DateTimeOffset | Time when Microsoft 365 Defender created the alert. |
| customDetails | microsoft.graph.security.dictionary | User defined custom fields with string values. |
| description | String | String value describing each alert. |
| detectionSource | microsoft.graph.security.detectionSource | Detection technology or sensor that identified the notable component or activity. |
| detectorId | String | The ID of the detector that triggered the alert. |
| determination | microsoft.graph.security.alertDetermination | Specifies the result of the investigation, whether the alert represents a true attack and if so, the nature of the attack. The possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedAccount, phishing, maliciousUserActivity, notMalicious, notEnoughDataToValidate, confirmedActivity, lineOfBusinessApplication, unknownFutureValue. |
| evidence | microsoft.graph.security.alertEvidence collection | Collection of evidence related to the alert. |
| firstActivityDateTime | DateTimeOffset | The earliest activity associated with the alert. |
| id | String | Unique identifier to represent the alert resource. |
| incidentId | String | Unique identifier to represent the incident this alert resource is associated with. |
| incidentWebUrl | String | URL for the incident page in the Microsoft 365 Defender portal. |
| investigationState | microsoft.graph.security.investigationState | Information on the current status of the investigation. The possible values are: unknown, terminated, successfullyRemediated, benign, failed, partiallyRemediated, running, pendingApproval, pendingResource, queued, innerFailure, preexistingAlert, unsupportedOs, unsupportedAlertType, suppressedAlert, partiallyInvestigated, terminatedByUser, terminatedBySystem, unknownFutureValue. |
| lastActivityDateTime | DateTimeOffset | The oldest activity associated with the alert. |
| lastUpdateDateTime | DateTimeOffset | Time when the alert was last updated at Microsoft 365 Defender. |
| mitreTechniques | String collection | The attack techniques, as aligned with the MITRE ATT&CK framework. |
| productName | String | The name of the product which published this alert. |
| providerAlertId | String | The ID of the alert as it appears in the security provider product that generated the alert. |
| recommendedActions | String | Recommended response and remediation actions to take in the event this alert was generated. |
| resolvedDateTime | DateTimeOffset | Time when the alert was resolved. |
| serviceSource | microsoft.graph.security.serviceSource | The service or product that created this alert. For more information, see serviceSource values. |
| severity | microsoft.graph.security.alertSeverity | Indicates the possible impact on assets. The higher the severity the bigger the impact. Typically higher severity items require the most immediate attention. The possible values are: unknown, informational, low, medium, high, unknownFutureValue. |
| status | microsoft.graph.security.alertStatus | The status of the alert. For more information, see alertStatus values. |
| tenantId | String | The Microsoft Entra tenant the alert was created in. |
| threatDisplayName | String | The threat associated with this alert. |
| threatFamilyName | String | Threat family associated with this alert. |
| title | String | Brief identifying string value describing the alert. |
| systemTags | String collection | The system tags associated with the alert. |
| category (deprecated) | String | The attack kill-chain category that the alert belongs to. Aligned with the MITRE ATT&CK framework. This property is in the process of being deprecated. Use the **c |
alertCommentGraph reference
| Property | Type | Description |
|---|---|---|
| comment | String | The comment text. |
| createdByDisplayName | String | The person or app name that submitted the comment. |
| createdDateTime | DateTimeOffset | The time when the comment was submitted. |
incidentGraph reference
| Property | Type | Description |
|---|---|---|
| assignedTo | String | Owner of the incident, or null if no owner is assigned. Free editable text. |
| classification | microsoft.graph.security.alertClassification | The specification for the incident. The possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. |
| comments | microsoft.graph.security.alertComment collection | Array of comments created by the Security Operations (SecOps) team when the incident is managed. |
| createdDateTime | DateTimeOffset | Time when the incident was first created. |
| customTags | String collection | Array of custom tags associated with an incident. |
| description | String | Description of the incident. |
| determination | microsoft.graph.security.alertDetermination | Specifies the determination of the incident. The possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedActivity, lineOfBusinessApplication, unknownFutureValue. |
| displayName | String | The incident name. |
| id | String | Unique identifier to represent the incident. |
| incidentWebUrl | String | The URL for the incident page in the Microsoft 365 Defender portal. |
| lastModifiedBy | String | The identity that last modified the incident. |
| lastUpdateDateTime | DateTimeOffset | Time when the incident was last updated. |
| priorityScore | Int | A priority score for the incident from 0 to 100, with > 85 being the top priority, 15 - 85 medium priority, and < 15 low priority. This score is generated using machine learning and is based on multiple factors, including severity, disruption impact, threat intelligence, alert types, asset criticality, threat analytics, incident rarity, and additional priority signals. The value can also be null which indicates the feature is not open for the tenant or the value of the score is pending calculation. |
| redirectIncidentId | String | Only populated in case an incident is grouped with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected. |
| resolvingComment | String | User input that explains the resolution of the incident and the classification choice. This property contains free editable text. |
| severity | alertSeverity | Indicates the possible impact on assets. The higher the severity, the bigger the impact. Typically higher severity items require the most immediate attention. The possible values are: unknown, informational, low, medium, high, unknownFutureValue. |
| status | microsoft.graph.security.incidentStatus | The status of the incident. The possible values are: active, resolved, inProgress, redirected, unknownFutureValue, and awaitingAction. |
| summary | String | The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. |
| systemTags | String collection | The system tags associated with the incident. |
| tenantId | String | The Microsoft Entra tenant in which the alert was created. |