user-mgmt add-ldap-group-to-cpd-group

Add an LDAP group to a Cloud Pak for Data user group.

Syntax

cpd-cli user-mgmt add-ldap-group-to-cpd-group \
--cpd-group=<cpd-group-name> \
--ldap-group=<ldap-group-name> \
--profile=<cpd-profile-name> \
[--cpdconfig=<cpd-configuration-location>] \
[--verbose]

Arguments

The add-ldap-group-to-cpd-group command has no arguments.

Options

Option Description
--cpdconfig The Cloud Pak for Data
 configuration location. For example, $HOME/.cpd-cli/config.
Status
Optional.
Syntax
--cpdconfig=<cpd-configuration-location>
Default value
$HOME/.cpd-cli/config
Valid values
A valid Cloud Pak for Data configuration location.
--cpd-group The Cloud Pak for Data group name.
Status
Required.
Syntax
--cpd-group=<cpd-group-name>
Default value
No default.
Valid values
A valid Cloud Pak for Data group name.

--help

-h

Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--ldap-group The LDAP group name.
Status
Required.
Syntax
--ldap-group=<ldap-group-name>
Default value
No default.
Valid values
A valid LDAP group name.
--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.
Status
Required.
Syntax
--profile=<cpd-profile-name>
Default value
No default.
Valid values

The name of the profile that you created.

--verbose Logs include more detailed messages.
Status
Optional.
Syntax
--verbose
Default value
No default.
Valid values
Not applicable.

Table 1: Command options

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 Best practice: Setting up installation environment variables.

Add an LDAP group to a Cloud Pak for Data user group.
cpd-cli user-mgmt add-ldap-group-to-cpd-group \
--ldap-group=<ldap-group-name> \
--cpd-group=<cpd-group-name> \
--profile=${CPD_PROFILE_NAME}