user-mgmt
bulk-upsert-users
Add or update multiple Cloud Pak
for Data users.
Syntax
cpd-cli user-mgmt bulk-upsert-users \
--from-csv-file=<csv-file-name> \
--from-json-file=<json-file-name> \
--profile=<cpd-configuration-profile-name> \
[--cpdconfig=<cpd-configuration-location>] \
[--verbose]
Arguments
The bulk-upsert-users
command
has no arguments.
Options
Table 1: Command options
Option | Description |
---|---|
--cpdconfig |
The Cloud Pak for Data
configuration location.
|
--from-csv-file |
A comma-separated (*.csv) file
that describes the user details.
|
--from-json-file |
A *.json file that describes the
user details.
|
|
Display command
help.
|
--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.
- Add or update multiple Cloud Pak for Data users with parameters from a bulkUsers.csv file.
-
cpd-cli user-mgmt bulk-upsert-users \ --from-csv-file=bulkUsers.csv \ --cpdconfig=<cpd-configuration-location> \ --profile=<cpd-configuration-profile-name>
- Add or update multiple Cloud Pak for Data users with parameters from a bulkUsers.json file.
-
cpd-cli user-mgmt bulk-upsert-users \ --from-json-file=bulkUsers.json \ --cpdconfig=<cpd-configuration-location> \ --profile=<cpd-configuration-profile-name>