Application Delegated Admin consent required Data checked
SecurityAlert.ReadWrite.All
- Resource
- SecurityAlert 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 to all security alerts, on behalf of the signed-in user.
As an application permission: Allows the app to read and write to all security alerts, without a signed-in user.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /security 6 | ||||
| GET | AD | |||
| POST | / | AD | ||
| GET | / | AD | — | |
| PATCH | / | AD | — | |
| POST | / | 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 SecurityAlert.ReadWrite.All.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgSecurityAlertV2 | Security | GET /security/alerts_v2, GET /security/alerts_v2/{id} |
| Set-MgSecurityAlert | Security | POST /security/alerts_v2/{id}/comments |
| Update-MgSecurityAlertV2 | Security | PATCH /security/alerts_v2/{id} |
| Get-MgBetaSecurityAlertV2 | Beta.Security | GET /security/alerts_v2, GET /security/alerts_v2/{id} |
| Invoke-MgBetaCreateSecurityAlert | Beta.Security | POST /security/alerts_v2/createAlert |
| New-MgBetaSecurityAlertV2 | Beta.Security | POST /security/alerts_v2 |
| Set-MgBetaSecurityAlert | Beta.Security | POST /security/alerts_v2/{id}/comments |
| Update-MgBetaSecurityAlertV2 | Beta.Security | PATCH /security/alerts_v2/{id} |
Granting SecurityAlert.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. |
createAlertInputGraph reference
| Property | Type | Description |
|---|---|---|
| category | String | MITRE ATT&CK category for the alert. |
| description | String | Free-text explanation of the suspicious activity or policy violation. |
| entityDefinitions | microsoft.graph.security.entityDefinition collection | Inline entity definitions that associate entities with the alert. |
| isExcludedFromCorrelation | Boolean | Whether the alert is excluded from automatic correlation. Defaults to false. |
| linkToIncident | Int64 | Incident ID to link the alert to. Use 0 or omit the value to create a new incident. |
| mitreTechniques | String collection | MITRE ATT&CK technique identifiers associated with the alert. |
| recommendedActions | String | Recommended remediation actions for the alert. |
| sentinelWorkspace | String | Microsoft Sentinel workspace identifier used for workspace routing. |
| severity | microsoft.graph.security.alertSeverity | Severity level of the alert. The possible values are: unknown, informational, low, medium, high, unknownFutureValue. |
| title | String | Short display name shown for the alert in the Defender portal. |
entityDefinitionInputGraph reference
| Property | Type | Description |
|---|---|---|
| entityIdentifier | String | The type of identifier used for the entity. The supported identifiers depend on the entityType. See supported entity identifiers. Key. |
| entityType | microsoft.graph.security.manualAlertEntityType | The type of entity. The possible values are: user, device, file, ip, url, cloudApplication, mailbox, securityGroup, azureResource, amazonResource, googleCloudResource, oAuthApplication, emailMessage, emailCluster, process, registryKey, registryValue, unknownFutureValue. |
| identifierValue | String | The actual identifier value for the entity (for example, [email protected] for a user, or 192.168.1.1 for an IP address). Maximum 1000 characters. |
| role | microsoft.graph.security.entityDefinitionInputRole | The role of the entity in the alert context. The possible values are: impacted, related, unknownFutureValue. |
manualAlertGraph reference
| Property | Type | Description |
|---|---|---|
| actorDisplayName | String | The adversary or activity group associated with this alert. Inherited from microsoft.graph.security.alert. |
| additionalData | microsoft.graph.security.dictionary | A collection of other alert properties, including user-defined properties. Inherited from microsoft.graph.security.alert. |
| alertPolicyId | String | The ID of the policy that generated the alert. Inherited from microsoft.graph.security.alert. |
| alertWebUrl | String | URL for the alert page in the Microsoft 365 Defender portal. Inherited from microsoft.graph.security.alert. |
| assignedTo | String | Owner of the alert, or null if no owner is assigned. Inherited from microsoft.graph.security.alert. |
| categories | String collection | The attack kill-chain categories that the alert belongs to. Inherited from microsoft.graph.security.alert. |
| category | String | The attack kill-chain category that the alert belongs to. Aligned with the MITRE ATT&CK framework. Inherited from microsoft.graph.security.alert. |
| classification | microsoft.graph.security.alertClassification | Specifies whether the alert represents a true threat. Inherited from microsoft.graph.security.alert. |
| comments | microsoft.graph.security.alertComment collection | Array of comments created by the Security Operations (SecOps) team during the alert management process. Inherited from microsoft.graph.security.alert. |
| createdDateTime | DateTimeOffset | Time when Microsoft 365 Defender created the alert. Inherited from microsoft.graph.security.alert. |
| customDetails | microsoft.graph.security.dictionary | A dictionary of custom key-value pairs associated with the alert. Inherited from microsoft.graph.security.alert. |
| description | String | String value describing each alert. Inherited from microsoft.graph.security.alert. |
| detectionSource | microsoft.graph.security.detectionSource | Detection technology or sensor that identified the notable component or activity. Inherited from microsoft.graph.security.alert. |
| detectorId | String | The ID of the detector that triggered the alert. Inherited from microsoft.graph.security.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. Inherited from microsoft.graph.security.alert. |
| evidence | microsoft.graph.security.alertEvidence collection | Collection of evidence related to the alert. Inherited from microsoft.graph.security.alert. |
| firstActivityDateTime | DateTimeOffset | The earliest activity associated with the alert. Inherited from microsoft.graph.security.alert. |
| id | String | Unique identifier for the alert. Inherited from microsoft.graph.entity. |
| incidentId | String | Unique identifier to represent the incident this alert resource is associated with. Inherited from microsoft.graph.security.alert. |
| incidentWebUrl | String | URL for the incident page in the Microsoft 365 Defender portal. Inherited from microsoft.graph.security.alert. |
| investigationState | microsoft.graph.security.investigationState | The state of the investigation. Inherited from microsoft.graph.security.alert. |
| isExcludedFromCorrelation | Boolean | When true, excludes the alert from automatic correlation. Default is false. |
| lastActivityDateTime | DateTimeOffset | The oldest activity associated with the alert. Inherited from microsoft.graph.security.alert. |
| lastUpdateDateTime | DateTimeOffset | Time when the alert was last updated at Microsoft 365 Defender. Inherited from microsoft.graph.security.alert. |
| linkToIncident | Int64 | ID of an existing incident to link to. If not provided, a new incident is created automatically. |
| mitreTechniques | String collection | The attack techniques, as aligned with the MITRE ATT&CK framework. Inherited from microsoft.graph.security.alert. |
| productName | String | The name of the product which published this alert. Inherited from microsoft.graph.security.alert. |
| providerAlertId | String | The ID of the alert as it appears in the security provider product that generated the alert. Inherited from microsoft.graph.security.alert. |
| recommendedActions | String | Recommended response and remediation actions to take in the event this alert was generated. Inherited from microsoft.graph.security.alert. |
| resolvedDateTime | DateTimeOffset | Time when the alert was resolved. Inherited from microsoft.graph.security.alert. |
| sentinelWorkspace | String | Sentinel workspace identifier for workspace routing. |
| serviceSource | microsoft.graph.security.serviceSource | The service or product that created this alert. Inherited from microsoft.graph.security.alert. |
| severity | microsoft.graph.security.alertSeverity | Indicates the possible impact on assets. Inherited from microsoft.graph.security.alert. |
| status | microsoft.graph.security.alertStatus | The status of the alert. Inherited from microsoft.graph.security.alert. |
| systemTags | String collection | The system tags associated with the alert. Inherited from microsoft.graph.security.alert. |
| tenantId | String | The Microsoft Entra tenant the alert was created in. Inherited from microsoft.graph.security.alert. |
| threatDisplayName | String | The threat associated with this alert. Inherited from microsoft.graph.security.alert. |
| threatFamilyName | String | Threat family associated with this alert. Inherited from microsoft.graph.security.alert. |
| title | String | Brief identifying string value describing the alert. Inherited from microsoft.graph.security.alert. |