← cd ~/roles
// roles/azure · security
Microsoft Sentinel ReaderAzure built-in role
Microsoft Sentinel Reader
| Role ID | 8d289c81-5878-46d4-8554-54e1e3d8b5cb |
|---|---|
| Category | Security |
| Actions | 21 (minus 2 NotActions) |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.SecurityInsights/*/read | Any read operation on anything under Microsoft.SecurityInsights |
Microsoft.SecurityInsights/dataConnectorsCheckRequirements/action | Check user authorization and license |
Microsoft.SecurityInsights/threatIntelligence/indicators/query/action | Query Threat Intelligence Indicators |
Microsoft.SecurityInsights/threatIntelligence/queryIndicators/action | Query Threat Intelligence Indicators |
Microsoft.OperationalInsights/workspaces/analytics/query/action | Search using new engine. |
Microsoft.OperationalInsights/workspaces/*/read | Any read operation on anything under Microsoft.OperationalInsights/workspaces |
Microsoft.OperationalInsights/workspaces/LinkedServices/read | Get linked services under given workspace. |
Microsoft.OperationalInsights/workspaces/savedSearches/read | Gets a saved search query. |
Microsoft.OperationsManagement/solutions/read | Get existing OMS solution |
Microsoft.OperationalInsights/workspaces/query/read | Run queries over the data in the workspace |
Microsoft.OperationalInsights/workspaces/query/*/read | Any read operation on anything under Microsoft.OperationalInsights/workspaces/query |
Microsoft.OperationalInsights/querypacks/*/read | Any read operation on anything under Microsoft.OperationalInsights/querypacks |
Microsoft.OperationalInsights/workspaces/dataSources/read | Get data source under a workspace. |
Microsoft.Insights/workbooks/read | Read a workbook |
Microsoft.Insights/myworkbooks/read | |
Microsoft.Authorization/*/read | Any read operation on anything under Microsoft.Authorization |
Microsoft.Insights/alertRules/* | Every operation under Microsoft.Insights/alertRules |
Microsoft.Resources/deployments/* | Every operation under Microsoft.Resources/deployments |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
Microsoft.Resources/templateSpecs/*/read | Any read operation on anything under Microsoft.Resources/templateSpecs |
Microsoft.Support/* | Every operation under Microsoft.Support |
Can't do
These are taken away from the actions above.
| Permission | What it allows |
|---|---|
Microsoft.SecurityInsights/ConfidentialWatchlists/* | Every operation under Microsoft.SecurityInsights/ConfidentialWatchlists |
Microsoft.OperationalInsights/workspaces/query/ConfidentialWatchlist/* | Every operation under Microsoft.OperationalInsights/workspaces/query/ConfidentialWatchlist |
Assign it
Scope it as tightly as you can: a resource or resource group rather than the whole subscription.
az role assignment create \
--assignee "jane.doe@contoso.com" \
--role "Microsoft Sentinel Reader" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Microsoft Sentinel Reader" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, '8d289c81-5878-46d4-8554-54e1e3d8b5cb')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '8d289c81-5878-46d4-8554-54e1e3d8b5cb')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "8d289c81-5878-46d4-8554-54e1e3d8b5cb"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other security roles
- App Compliance Automation Reader · 1 permission
- Key Vault Crypto Service Release User · 1 permission
- Security Assessment Contributor · 1 permission
- Attestation Reader · 2 permissions
- Key Vault Secrets User · 2 permissions
- Attestation Contributor · 3 permissions
- Locks Contributor · 3 permissions
- Key Vault Certificate User · 4 permissions