mongocli iam teams users list
返回团队的所有用户。
使用此命令,您必须使用具有组织成员角色的用户帐户或API密钥进行认证。
语法
命令语法
mongocli iam teams users list [options]
选项
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
-h, --help | false | 列表的帮助信息 | |
--orgId | string | false | 要使用的组织ID。此选项会覆盖配置文件或环境变量中的设置。 |
-o, --output | string | false | 输出格式。有效值有 json, json-path, go-template, 或 go-template-file。要查看完整输出,请使用 -o json 选项。 |
--teamId | string | true | 唯一24位字符串,用于标识团队。 |
继承选项
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
-P, --profile | string | false | 从您的配置文件中使用的配置文件名称。有关MongoCLI配置文件中配置文件的信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
示例
# Return a JSON-formatted list of the users for the team with the ID 5f6a5c6c713184005d72fe6e in the organization with ID 5e2211c17a3e5a48f5497de3: mongocli iam teams users list --teamId 5f6a5c6c713184005d72fe6e --orgId 5e1234c17a3e5a48f5497de3 --output json