3.6. Create a Regular User Account


Create a regular user and tenant. Tenants are used to aggregate service resources, and are also known as projects.
All steps in this procedure must be performed on the system hosting the Identity service.

Procedure 3.10. Creating a Regular User Account

  1. Set up the shell to access keystone as the administrative user:
    # source ~/keystonerc_admin
    Copy to Clipboard Toggle word wrap
  2. Create a tenant:
    [(keystone_admin)]# openstack project create TENANT
    +-------------+----------------------------------+
    | Field       | Value                            |
    +-------------+----------------------------------+
    | description | None                             |
    | enabled     | True                             |
    | id          | 99c674e3fead4237ace2a0d86dab76e4 |
    | name        | TENANT                           |
    +-------------+----------------------------------+
    Copy to Clipboard Toggle word wrap
    Replace TENANT with a name for the tenant.
  3. Create a regular user:
    [(keystone_admin)]# openstack user create --project TENANT --password PASSWORD USER
    +------------+----------------------------------+
    | Field      | Value                            |
    +------------+----------------------------------+
    | email      | None                             |
    | enabled    | True                             |
    | id         | 246b1342a8684bf39d7cc5165ef835d4 |
    | name       | USER                             |
    | project_id | 99c674e3fead4237ace2a0d86dab76e4 |
    | username   | USER                             |
    +------------+----------------------------------+
    Copy to Clipboard Toggle word wrap
    Replace USER with a user name for the account. Replace TENANT with the tenant name that you used in the previous step. Replace PASSWORD with a secure password for the account.

    Note

    The user is associated with Identity's default _member_ role automatically thanks to the --project option.
  4. To facilitate authentication, create a keystonerc_user file in a secure location (for example, the home directory of the root user).
    Set the following environment variables to be used for authentication:
    export OS_USERNAME=USER
    export OS_PROJECT_NAME=TENANT
    export OS_PASSWORD=PASSWORD
    export OS_AUTH_URL=http://IP:5000/v2.0/
    export PS1='[\u@\h \W(keystone_user)]\$ '
    Copy to Clipboard Toggle word wrap
    Replace USER, TENANT, and PASSWORD with the values specified during tenant and user creation. Replace IP with the IP address or host name of the Identity server.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat