Docs Menu

mongocli iam users describe

Get a user by username or id.

mongocli iam users describe [options]
Name
Type
Required
Description
-h, --help
false
help for describe
--id
string
false
The ID of the user.
-o, --output
string
false
Output format. Valid values: json|json-path|go-template|go-template-file
--username
string
false
Username of the user.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
Describe a user by ID
$ mongocli iam users describe --id <id>
Describe a user by username
$ mongocli iam users describe --username <username>