Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas
Created by Guest
Created on Jun 30, 2023

create roles with rights on wildcard database like collections

Exemple: use admin db.createRole( { role: "UserCanCreateDbTest", privileges: [ { resource: { db: "test*", collection: "*" }, actions: [ "update", "insert", "remove" ] }, { resource: { db: "test*", collection: "*" }, actions: [ "find" ] } ], roles: [ { role: "read", db: "admin" } ] }, { w: "majority" , wtimeout: 5000 } ) https://stackoverflow.com/questions/30462767/mongodb-grant-all-with-wildcard-role-like-mysql