Deleting a machine user

Deleting a machine user involves manually deleting the user's API access keys and SSH keys, unassigning all account and resource roles, removing thte user from all groups, and deleting the user.


Prior to deleting a machine user you should:

  • Delete API access keys generated for this user.
  • Delete SSH keys associated with the user.
  • Unassign all roles and resource roles assigned to the user.
  • Remove user from all groups that they belong to.

Steps - CDP web interface

You can delete a machine user through the user interface:

  1. Sign in to CDP.
  2. From the CDP home page, click Management Console.
  3. Click User Management.The Users page displays the list of all CDP users.
  4. Search for the machine user that you want to delete and click the three dots at the end of the machine user entry row.
  5. Click Delete Machine User and then OK on the confirmation screen.

Alternatively, you can click on the machine user name to enter the machine user's detail page. From there, click Actions and Delete Machine User.

Steps - CDP CLI

In the CDP CLI, the command to delete a machine user is delete-machine-user. The command requires a machine user name, which is the name or the CRN (Cloudera resource name) of the given machine user. Run the command as shown below:

cdp iam delete-machine-user \
--machine-user-name <value>

For a detailed description of the command properties, call the CDP help for the command:

cdp iam delete-machine-user --help

What to do next: You need to perform user sync for the change to take effect. See Performing user sync.