// Module included in the following assemblies:
//
// assembly-managing-users.adoc

[id='proc-creating-users-cli-{context}']
= Creating users using the command line

In {ProductName} users can be created using standard command-line tools.

.Prerequisites

* You must have already created an link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#con-address-space-messaging[address space].

.Procedure

. Save the user definition to a file:
+
[source,yaml,options="nowrap"]
----
include::../common/user-example1.yaml[]
----

. Create the user and associated user permissions:
+
[options="nowrap",subs="attributes,+quotes"]
----
{cmdcli} create -f __user-example1.yaml__
----

. Confirm that the user was created:
+
[options="nowrap",subs="attributes,+quotes"]
----
{cmdcli} get messagingusers
----


