Path: blob/main/L4assets/DSandMLOpsAssets/CLIandSDK/Notebooks/CPD-01 User Management basic.ipynb
1928 views
Kernel: Python 3.10
User management basic
Using the API documented at: IBM Cloud Pak for Data Platform API
This is the latest despite CPD 4.6 being out.
Capabilities demonstrated:
Defining python support functions
Getting an access token
List all users
Create a user
Delete the newly created user
In [ ]:
Make sure to set the variables in the next cell
cpd_url, username, password
In [ ]:
Support functions
In [ ]:
Get an access token
Note that the token usually lasts for only one hour.
An access token is used to identify a user in API requests.
In [ ]:
List all users
This returns an array of users with a lot of information.
Only part of this information is displayed. See the documentation for details.
In [ ]:
In [ ]:
Create a user
In [ ]:
Delete a user
In [ ]:
Author
Jacques Roy is a member of the IBM Enablement for Data and AI
Copyright © 2023. This notebook and its source code are released under the terms of the MIT License.
In [ ]: