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.
1
vote
Albert
shared this idea
-
Albert commented
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.