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 Database
Created by Guest
Created on Mar 24, 2021

Have a role that allows that user to control the schema of a collection

As a DBA or Data Architect, I want to be able to enforce data governance policies like schema control. Users of MongoDB cannot change the schema however DBA or named individuals have the ability to change the schema.
  • Attach files
  • Guest
    Mar 25, 2021
    Using $jsonSchema validation with strict validationLevel (the default) and additionalProperties=false (must be specified), only a user with collmod or bypassDocumentValidation privileges will be able to modify the shape of data allowed by insert/update.