azure-cosmosdb-sqlrole-assignment-write-permission
match (effective permission)
{
"action": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write",
"resource_type": "Microsoft.DocumentDB/databaseAccounts"
}
emit
| source type | Identity |
|---|---|
| target type | NoSQLDatabase |
| source | <principal> |
| target | <databaseAccount node> |
| permissions | Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write |
Narrative
{principal.name} has effective permission sqlRoleAssignments/write on {account.name} (via role: {role.name}), allowing creation/modification of native data-plane role assignments.
Raw rule rules/explicit/azure-cosmosdb.yaml
id: azure-cosmosdb-sqlrole-assignment-write-permission
emits: HasPermission
applies_to:
- azure
match_effective_permission:
action: Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write
resource_type: Microsoft.DocumentDB/databaseAccounts
emit:
source_type: Identity
target_type: NoSQLDatabase
source: <principal>
target: <databaseAccount node>
permissions:
- Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write
narrative: '{principal.name} has effective permission sqlRoleAssignments/write on {account.name} (via
role: {role.name}), allowing creation/modification of native data-plane role assignments.'