user-mgmt
list-users
List all Cloud Pak for Data
users.
Syntax
cpd-cli user-mgmt list-users \
--profile=<cpd-configuration-profile-name> \
[--cpdconfig=<cpd-configuration-location>] \
[--output=json|yaml|csv|text] \
[--verbose]
Arguments
The list-users
command has no
arguments.
Options
Option | Description |
---|---|
--cpdconfig |
The Cloud Pak for Data
configuration location.
|
|
Display command
help.
|
|
Specify an output format. Valid
formats include json, yaml, csv, or text (the default
format).
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- List all Cloud Pak for Data users in the default *.txt format.
-
cpd-cli user-mgmt list-users \ --profile=<cpd-configuration-profile-name>
- List all Cloud Pak for Data users in *.json format.
-
cpd-cli user-mgmt list-users \ --profile=<cpd-configuration-profile-name> \ --output=json
- List all Cloud Pak for Data users in the default *.csv format.
-
cpd-cli user-mgmt list-users \ --profile=<cpd-configuration-profile-name> \ --output=csv