什么是DocumentDB中的 "系统管理用户"?

问题描述 投票:1回答:1

我们在AWS上有一个集群,有一个Document DB在运行。我想授予一些额外的权限,所以我以用户的身份连接到数据库,并以 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的文档,但哪里都没有找到。它们是什么?用户如何结束被 系统管理? 以及如何更改他们的权限?

mongodb user-management aws-documentdb
1个回答
1
投票

服务管理员用户是在创建集群时隐式创建的。每个Amazon DocumentDB集群都有一个serviceadmin用户,它提供AWS管理你的集群的能力。您不能以服务管理员的身份登录、删除、重命名、更改密码或更改权限。任何这样做的尝试都会导致错误。

请参阅以下内容了解更多信息。https:/docs.aws.amazon.comdocumentdblatestdeveloperguidesecurity.managing-users.html。

© www.soinside.com 2019 - 2024. All rights reserved.