# SecurityAlert.ReadWrite.All

> Allows the app to read and write to all security alerts, on behalf of the signed-in user.

Source: https://graphpermissions.merill.net/permission/SecurityAlert.ReadWrite.All.html
Data checked: 2026-12-05

## Permission types

### Application

- Display name: Read and write to all security alerts
- Description: Allows the app to read and write to all security alerts, without a signed-in user.
- ID: ed4fca05-be46-441f-9803-1873825f8fdb
- Admin consent required: Yes
- Microsoft privilege level: 3 (High)

### Delegated

- Display name: Read and write to all security alerts
- Description: Allows the app to read and write to all security alerts, on behalf of the signed-in user.
- ID: 471f2a7f-2a42-4d45-a2bf-594d0838070d
- Admin consent required: Yes
- Microsoft privilege level: 3 (High)

## APIs (6)

Least = this permission is the least privileged one for the API. Smaller = a lower privileged permission that also works.

| Method | Path | Versions | Works as | Least | Smaller permission | PowerShell |
|---|---|---|---|---|---|---|
| GET | `/security/alerts_v2` | v1.0, beta | Application, Delegated |  | SecurityAlert.Read.All (Application) | Get-MgSecurityAlertV2, Get-MgBetaSecurityAlertV2 |
| POST | `/security/alerts_v2` | beta | Application, Delegated |  | SecurityAlert.Create.All (Application) | New-MgBetaSecurityAlertV2 |
| GET | `/security/alerts_v2/{id}` | v1.0, beta | Application, Delegated | Application, Delegated |  | Get-MgSecurityAlertV2, Get-MgBetaSecurityAlertV2 |
| PATCH | `/security/alerts_v2/{id}` | v1.0, beta | Application, Delegated | Application, Delegated |  | Update-MgSecurityAlertV2, Update-MgBetaSecurityAlertV2 |
| POST | `/security/alerts_v2/{id}/comments` | v1.0, beta | Application, Delegated | Application, Delegated |  | Set-MgSecurityAlert, Set-MgBetaSecurityAlert |
| POST | `/security/alerts_v2/createAlert` | beta | Application, Delegated |  | SecurityAlert.Create.All (Application) | Invoke-MgBetaCreateSecurityAlert |

## Data it exposes

- [alert](https://learn.microsoft.com/graph/api/resources/security-alert?view=graph-rest-1.0)
- [alertComment](https://learn.microsoft.com/graph/api/resources/security-alertcomment?view=graph-rest-1.0)
- [createAlertInput](https://learn.microsoft.com/graph/api/resources/security-createalertinput?view=graph-rest-1.0)
- [entityDefinitionInput](https://learn.microsoft.com/graph/api/resources/security-entitydefinitioninput?view=graph-rest-1.0)
- [manualAlert](https://learn.microsoft.com/graph/api/resources/security-manualalert?view=graph-rest-1.0)
