mongocli iam teams users list
On this page
Return all users for a team.
To use this command, you must authenticate with a user account or an API key with the Organization Member role.
Syntax
Command Syntax
mongocli iam teams users list [options]
Options
Name | Type | Required | Description |
---|---|---|---|
-h, --help | false | help for list | |
--orgId | string | false | Organization ID to use. This option overrides the settings in the configuration file or environment variable. |
-o, --output | string | false | Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option. |
--teamId | string | true | Unique 24-digit string that identifies the team. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
Examples
# 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