← cd ~/roles
// roles/azure · security
Microsoft Sentinel ContributorAzure built-in role
Microsoft Sentinel Contributor
| Role ID | ab8e14d6-4a74-4a29-9ba8-549422addade |
|---|---|
| Category | Security |
| Actions | 16 (minus 2 NotActions) |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.SecurityInsights/* | Every operation under Microsoft.SecurityInsights |
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/savedSearches/* | Every operation under Microsoft.OperationalInsights/workspaces/savedSearches |
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/workspaces/dataSources/read | Get data source under a workspace. |
Microsoft.OperationalInsights/querypacks/*/read | Any read operation on anything under Microsoft.OperationalInsights/querypacks |
Microsoft.Insights/workbooks/* | Every operation under Microsoft.Insights/workbooks |
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.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 Contributor" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Microsoft Sentinel Contributor" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'ab8e14d6-4a74-4a29-9ba8-549422addade')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ab8e14d6-4a74-4a29-9ba8-549422addade')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "ab8e14d6-4a74-4a29-9ba8-549422addade"
| 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