x Required Access - Compass - MongoDB Docs
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.如果在连接的MongoDB实例上强制执行身份验证/授权,则MongoDB Compass用户需要特定权限才能访问各种Compass功能。

The following table lists the privileges required to access the features as well as the built-in roles that can provide these privileges:下表列出了访问功能所需的权限以及可以提供这些权限的内置角色:

Compass ViewCompass视图Capability能力Privilege(s)权限MongoDB Built-In RoleMongoDB内置角色
Home/MongoDB InstanceView performance查看性能clusterMonitor
DatabaseCreate a Database创建数据库createCollectionreadWrite
DatabaseDrop a Database删除数据库dropDatabasedbAdmin
CollectionCreate a Collection创建集合createCollectionreadWrite
CollectionDrop a Collection删除集合dropCollectionreadWrite
SchemaQuery/View a Schema查询/查看架构findread
DocumentsQuery/View a Document查询/查看文档findread
DocumentsClone, insert, update, delete a document克隆、插入、更新、删除文档readWrite
IndexesView an index查看索引listIndexesread
IndexesCreate, drop an index创建、删除索引readWrite
Explain PlanQuery/View a query plan查询/查看查询计划findread
ValidationView rules查看规则listCollectionsread
ValidationUpdate rules更新规则collModdbAdmin

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.内置角色可能提供比所需更多的访问权限。您还可以在自我管理部署上创建用户定义角色,以授予特定权限。