Deleting users

Removing users from OpenStack Identity is a simple one step process. In this example, we will show how to delete a user named oldreader.

Getting ready

Ensure that you are logged on to a correctly configured OpenStack client and can access the OpenStack environment as a user with admin privileges.

Refer to Chapter 2, The OpenStack Client, for details of setting up your environment to use OpenStack command-line client.

How to do it…

In order to delete a user, execute the following commands:

  1. Get the user's name from the users in a current domain:
    openstack user list
    
    How to do it…
  2. Delete the oldreader user:
    openstack user delete oldreader
    

    This command will have no output.

How it works…

Deleting unnecessary users is simple when using OpenStack command-line tool. Start with a command to get existing users:

openstack user list

Delete a user by executing the following:

openstack user delete <user>

Here the <user> parameter can be either user ID or username.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.21.108