Users#

Users include details such as user ID, first name, last name, email and IAM ID. User Management is a platform-level service in IBM Cloud that enables you to manage the users within your account. The SDK provides functionality to interact with the User Management API on the watsonx.data integration platform.

This includes operations such as:
  • Listing all users

  • Getting user details using the IAM ID or User ID

Listing all users#

In the UI, you can view all users in the current account by navigating to Top left hamburger menu -> Administration -> Access (IAM) -> Users.

Screenshot of the User list in the UI  - Step 1 Screenshot of the User list in the UI  - Step 2

In the SDK, users can be retrieved using the Platform.users property. This property returns a UserProfiles object.

>>> platform.users
[...UserProfile(...)...]

Getting user details using the IAM ID or User ID#

In the UI, to view user details, click the empty area within the row where the user name is displayed.

Screenshot of the User details in the UI

In the SDK, users can be retrieved using the Platform.users property. You can also filter the returned users using either the iam_id or user_id attribute, but not both. This property returns a UserProfile object.

>>> platform.users.get(iam_id='IBMid-6xxxxxxxxV')
UserProfile(...)

>>> platform.users.get(user_id='B.user@ibm.com')
UserProfile(...)