Azure Databases built-in role

DocumentDB Account Contributor

Broadly manages Azure Cosmos DB accounts and their child resources through the control plane. It has no DataActions, but its unrestricted account-management wildcard includes key and connection-string operations and management of native data-plane role definitions and assignments, so it is not a least-privilege default.

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: 5bd9cd88-fe45-4216-938b-f97437e15450

Control-plane actions (8)

Data-plane actions (0)

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

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

Assign on an individual Cosmos DB account or a dedicated resource group only when the administrator owns the full account lifecycle. Parent assignments are inherited. Native item access is a separate data plane, but account-key retrieval can open a key-authenticated path outside Microsoft Entra data-role assignments.

Common use cases (2)

Prerequisites (2)

Best practices (3)

Security considerations (3)

Assignment guidance

Reserve DocumentDB Account Contributor for trusted account administrators or automation that requires the full account wildcard. Assign at the individual account or dedicated resource group, prefer Cosmos DB Operator for constrained operations, and grant application data access through native Cosmos DB roles.

Related roles (2)

Common questions

When should I assign the DocumentDB Account Contributor Azure role?

Assign DocumentDB Account Contributor when you need to: Create, configure, move, update, or delete Azure Cosmos DB account resources and their child database or container resources.; and Perform trusted account administration that explicitly requires operations excluded from Cosmos DB Operator, such as account-key or native data-role administration.. Practical scope: Assign on an individual Cosmos DB account or a dedicated resource group only when the administrator owns the full account lifecycle. Parent assignments are inherited. Native item access is a separate data plane, but account-key retrieval can open a key-authenticated path outside Microsoft Entra data-role assignments.

What permissions does the DocumentDB Account Contributor Azure role grant?

The role definition grants 8 combined control-plane and data-plane actions. Representative operations include: Microsoft.Authorization/*/read; Microsoft.DocumentDb/databaseAccounts/*; Microsoft.Insights/alertRules/*; 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 DocumentDB Account Contributor Azure role?

Key considerations when assigning DocumentDB Account Contributor: The role can make destructive account and child-resource changes and can manage credentials and native data-role resources through its account wildcard.; No DataActions are present, but retrieved account keys can authorize data access through the separate key-based path.; and Combining full control-plane administration with native data-role administration concentrates infrastructure and access-control authority.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (4)

Official Microsoft Learn documentation →