Docs Home / Compass / Connect

Required Access

MongoDB Compass users require specific privileges to access various Compass features if authentication/authorization is enforced on the connected MongoDB instance.

The following table lists the privileges required to access the features as well as the built-in roles that can provide these privileges:

Compass ViewCapabilityPrivilege(s)MongoDB Built-In Role
Home/MongoDB InstanceView performanceclusterMonitor
DatabaseCreate a DatabasecreateCollectionreadWrite
DatabaseDrop a DatabasedropDatabasedbAdmin
CollectionCreate a CollectioncreateCollectionreadWrite
CollectionDrop a CollectiondropCollectionreadWrite
SchemaQuery/View a Schemafindread
DocumentsQuery/View a Documentfindread
DocumentsClone, insert, update, delete a documentreadWrite
IndexesView an indexlistIndexesread
IndexesCreate, drop an indexreadWrite
Explain PlanQuery/View a query planfindread
ValidationView ruleslistCollectionsread
ValidationUpdate rulescollModdbAdmin

Note

The built-in roles may provide more access than required. You can also create a User-Defined Roles on Self-Managed Deployments to grant specific privileges.