Path: blob/main/L4assets/DSandMLOpsAssets/CLIandSDK/Notebooks/CPD-02b User mgmt with cpd-cli.ipynb
1928 views
Kernel: Python 3.10
Using the cpd-cli utility for user managment
This notebook shows how cpd-cli can be used in a notebook.
The cpd-cli requires an API key.
Note that cpd-cli cannot do everything that is available through the REST API. The available commands include:
add-ldap-group-to-cpd-group, add-ldap-user-to-cpd-group
bulk-upsert-ud-roles, bulk-upsert-users
config-ldap
get-group, get-user
list-groups, list-ud-roles, list-users
upsert-group, upsert-user
version
The functionalities demonstrated are:
Setup access to cpd-cli
List users
List groups
List user-defined roles
For more information, see:
In [ ]:
In [ ]:
Setup cpd-cli configuration
In [ ]:
In [ ]:
List all users
The output is different from the one from the REST API.
In [ ]:
List groups
In [ ]:
List user-defined roles
In [ ]:
Create a user
In [ ]:
Delete user
cpd-cli does not have a delete user command. For more information, see User management command summary
In [ ]: