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

[id='proc-managing-user-permissions-cli-{context}']
= Managing user permissions using the command line

You can edit the permissions for an existing user using the command line.

.Prerequisites

* You must have already created a user. For more information see link:{BookUrlBase}{BaseProductVersion}{BookNameUrl}#proc-creating-users-cli-messaging[Creating users using the command line].

.Procedure

. Retrieve the user whose permissions you want to edit:
+
[options="nowrap",subs="attributes,+quotes"]
----
{cmdcli} get messaginguser __myspace.user1__ -o yaml > __user-example1.yaml__
----

. Make the desired permissions change and save the file.

. From the command line, run the following command to apply the change:
+
[options="nowrap",subs="attributes,+quotes"]
----
{cmdcli} apply -f __user-example1.yaml__
----
+
The new user permissions are applied.

