A scalable, fully managed NoSQL database for JSON documents with fast queries and automatic indexing
Hi Anthony Slabinck,
Thanks for detailing the scenario, I understand how important database-level isolation is for your applications, especially when enforcing least‑privilege access with workload identities. You’re right that the documentation describes scenarios where non‑administrative users can hold restricted roles on specific databases. However, in the current Azure DocumentDB preview, role assignments are limited to the admin database. This means that while authentication with Microsoft Entra ID identities works, assigning readWrite directly on a database like customers isn’t yet supported.
When you’re designing for strict isolation. For now, the supported approach is to use cluster‑wide roles (e.g., readWriteAnyDatabase) scoped to admin.
If isolation is critical, we recommend either provisioning separate clusters per application or enforcing guardrails at the application layer until database‑level RBAC becomes available.
This is a limitation of the preview, not a misconfiguration on your side. Microsoft is actively expanding RBAC capabilities, and we’ll keep you updated as database‑level role support rolls out