Command syntax for reference: openstack user <action> <--parameters values> <username>
<action>: list, create, set, show, help...
<parameters>: domain, project, description, email...
To check the list of users
cumulus@server01:~$ openstack user list
+----------------------------------+-----------+
| ID                               | Name      |
+----------------------------------+-----------+
| bf8e72b9dab54fce9582d0eb6acee95a | placement |
| c30b5df613ae4e818c8f7b38afdc2dae | neutron   |
| cd557406ef264e47a83856406c39f54c | admin     |
| d20131a2f7644c1b8a2d1bed13fe71ef | demo      |
| e9ec70ddc0114ed1a1fa97bdf007c200 | glance    |
| fe656dc2c15541c1ab96f6fdc1df39f4 | nova      |
+----------------------------------+-----------+
note that placement, neutron, glance and nova refer to system users created for each of the respective services and they all belong to the 'service' project  in the 'default' domain
cumulus@server01:~$ openstack user list --project service
+----------------------------------+-----------+
| ID                               | Name      |
+----------------------------------+-----------+
| fe656dc2c15541c1ab96f6fdc1df39f4 | nova      |
| e9ec70ddc0114ed1a1fa97bdf007c200 | glance    |
| c30b5df613ae4e818c8f7b38afdc2dae | neutron   |
| bf8e72b9dab54fce9582d0eb6acee95a | placement |
+----------------------------------+-----------+
The other two usernames admin and demo are used by operators, admin user belongs to the 'admin' project, and 'demo' user belongs to the 'demo' project
cumulus@server01:~$ openstack user list --project admin
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| cd557406ef264e47a83856406c39f54c | admin |
+----------------------------------+-------+
cumulus@server01:~$ openstack user list --project demo
+----------------------------------+------+
| ID                               | Name |
+----------------------------------+------+
| d20131a2f7644c1b8a2d1bed13fe71ef | demo |
+----------------------------------+------+
To check the username belonging to a specific domain, with the --domain flag
cumulus@server01:~$ openstack user list --domain default
+----------------------------------+-----------+
| ID                               | Name      |
+----------------------------------+-----------+
| bf8e72b9dab54fce9582d0eb6acee95a | placement |
| c30b5df613ae4e818c8f7b38afdc2dae | neutron   |
| cd557406ef264e47a83856406c39f54c | admin     |
| d20131a2f7644c1b8a2d1bed13fe71ef | demo      |
| e9ec70ddc0114ed1a1fa97bdf007c200 | glance    |
| fe656dc2c15541c1ab96f6fdc1df39f4 | nova      |
+----------------------------------+-----------+
There isn't any user mapped to the 'firstDomain' domain yet
cumulus@server01:~$ openstack user list --domain firstDomain
cumulus@server01:~$
Let's try creating a new user 'firstUser' with the password 'firstPassword' and mapping it to the domain 'firstDomain' and the project 'firstProject'
cumulus@server01:~$ openstack user create --password firtDomain --project firstProject firstUser
+---------------------+---------------------------------
-+
| Field               | Value
|
+---------------------+---------------------------------
-+
| default_project_id  | ad0c7ad26a0b407f8ad41e223338f810
|
| domain_id           | f0bb69245afe41eb9aba9873421c3595
|
| enabled             | True
|
| id                  | 9684ca0673544c4680ed074b69a831bb
|
| name                | firstUser
|
| options             | {}
|
| password_expires_at | None
|
+---------------------+---------------------------------
-+
The user should now show up in the domain
cumulus@server01:~$ openstack user list --domain firstDomain
+----------------------------------+-----------+
| ID                               | Name      |
+----------------------------------+-----------+
| 9684ca0673544c4680ed074b69a831bb | firstUser |
+----------------------------------+-----------+
Note that, the project that we mapped during the user creation, is only the default project, but the user won't show up in the project yet.
cumulus@server01:~$ openstack user list --project firstProject
cumulus@server01:~$
To see the user listed in a project, we need to add a specific role for the user in that project, we will see that in another post, with the title OpenStack | Roles
--end-of-post--