Azure Databases built-in role

Cosmos DB Operator

Broadly manages Azure Cosmos DB accounts through the Azure control plane while excluding account keys, connection strings, copy and data-transfer jobs, and writes or deletes for native data-plane role definitions and assignments. It has no DataActions and does not authorize item access.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: 230815da-be43-4aae-9cb4-875f7bd000aa

Control-plane actions (8)

Data-plane actions (0)

None — this role grants no data-plane (data access) actions.

Excluded actions (30)

Assignable scopes (1)

Practical scope

Assign on an individual Cosmos DB account or a dedicated resource group containing accounts the operator owns. Parent-scope assignments are inherited. The role controls account resources but does not grant native Cosmos DB data-plane access or Azure RBAC role-assignment authority.

Common use cases (2)

Prerequisites (2)

Best practices (3)

Security considerations (3)

Assignment guidance

Assign Cosmos DB Operator to the trusted account-operations identity at the individual account or dedicated resource-group scope. Keep native data roles and their administration separate, and use DocumentDB Account Contributor only when excluded key or account operations are explicitly required.

Related roles (2)

Common questions

When should I assign the Cosmos DB Operator Azure role?

Assign Cosmos DB Operator when you need to: Operate Azure Cosmos DB account resources and configuration without exposing account keys or connection strings.; and Deploy and manage account infrastructure while keeping application item access and native data-role administration with separate identities.. Practical scope: Assign on an individual Cosmos DB account or a dedicated resource group containing accounts the operator owns. Parent-scope assignments are inherited. The role controls account resources but does not grant native Cosmos DB data-plane access or Azure RBAC role-assignment authority.

What permissions does the Cosmos DB Operator Azure role grant?

The role definition grants 8 combined control-plane and data-plane actions. Representative operations include: Microsoft.DocumentDb/databaseAccounts/*; Microsoft.Insights/alertRules/*; Microsoft.Authorization/*/read; Microsoft.ResourceHealth/availabilityStatuses/read; Microsoft.Resources/deployments/*; and Microsoft.Resources/subscriptions/resourceGroups/read. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the Cosmos DB Operator Azure role?

Key considerations when assigning Cosmos DB Operator: The role can make broad control-plane changes to accounts, databases, containers, throughput, networking, and deployments even though it cannot read items through DataActions.; Its exclusions prevent account-key and connection-string retrieval and prevent writes or deletes to native Cosmos DB role definitions and assignments.; and It remains a broad contributor-style role and is not a least-privilege default for a narrow operational task.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (4)

Official Microsoft Learn documentation →