DocumentDB 中的 "system managed users" 是什么?
What are "system managed users" in DocumentDB?
我们在 AWS 中有一个集群,有一个文档数据库和 运行。我想授予一些额外的权限,所以我以授予 root
角色的用户身份连接到数据库,并做了通常的 MongoDB 事情:
db.grantRolesToUser("nameOfTheUser", ["readWrite"])
它不仅授予了权限,还给了我:
2020-05-04T15:26:42.053+0000 E QUERY [js] uncaught exception: Error: Cannot update system managed users' roles :_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype.grantRolesToUser@src/mongo/shell/db.js:1592:15
@(shell):1:1
这是我第一次听说任何 系统管理的用户。我搜索了 MongoDB 和 AWS DocumentDB 文档,但没有在任何地方找到它。 它们是什么?用户如何最终成为 系统管理?我该如何更改他们的权限?
serviceadmin 用户是在创建集群时隐式创建的。每个 Amazon DocumentDB 集群都有一个 serviceadmin 用户,为 AWS 提供管理集群的能力。您不能以以下身份登录、删除、重命名、更改密码或更改 serviceadmin 的权限。任何这样做的尝试都会导致错误。
请参阅以下内容以获取更多信息:https://docs.aws.amazon.com/documentdb/latest/developerguide/security.managing-users.html
我们在 AWS 中有一个集群,有一个文档数据库和 运行。我想授予一些额外的权限,所以我以授予 root
角色的用户身份连接到数据库,并做了通常的 MongoDB 事情:
db.grantRolesToUser("nameOfTheUser", ["readWrite"])
它不仅授予了权限,还给了我:
2020-05-04T15:26:42.053+0000 E QUERY [js] uncaught exception: Error: Cannot update system managed users' roles :_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype.grantRolesToUser@src/mongo/shell/db.js:1592:15
@(shell):1:1
这是我第一次听说任何 系统管理的用户。我搜索了 MongoDB 和 AWS DocumentDB 文档,但没有在任何地方找到它。 它们是什么?用户如何最终成为 系统管理?我该如何更改他们的权限?
serviceadmin 用户是在创建集群时隐式创建的。每个 Amazon DocumentDB 集群都有一个 serviceadmin 用户,为 AWS 提供管理集群的能力。您不能以以下身份登录、删除、重命名、更改密码或更改 serviceadmin 的权限。任何这样做的尝试都会导致错误。
请参阅以下内容以获取更多信息:https://docs.aws.amazon.com/documentdb/latest/developerguide/security.managing-users.html