user-mgmt
get-user
Retrieve Cloud Pak for Data user details for the specified username.
Syntax
cpd-cli user-mgmt get-user <cpd-username> \
--profile=<cpd-profile-name> \
[--cpdconfig=<cpd-configuration-location>] \
[--output=json|yaml] \
[--verbose]
Arguments
Table 1: Command arguments
Argument | Description |
---|---|
<cpd-username> |
The name of the Cloud Pak for Data user to retrieve the details for. |
Options
Table 1: Command options
Option | Description |
---|---|
--cpdconfig |
The Cloud Pak for Data
configuration location. For example,
$HOME/.cpd-cli/config.
|
|
Display command
help.
|
|
Specify an output format. Valid
formats include YAML or JSON (the default format).
|
--profile |
The name of the profile that you
created to store information about an instance of Cloud Pak for Data and your credentials for the
instance.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Retrieve Cloud Pak for Data user details for the specified username.
-
cpd-cli user-mgmt get-user <cpd-username> \ --profile=${CPD_PROFILE_NAME}