// Module included in the following assemblies:
//
// * virt/managing_vms/virtual_disks/virt-migrating-storage-class.adoc

:_mod-docs-content-type: PROCEDURE

[id="virt-migrating-storage-permissions_{context}"]
= Assign storage migration permissions

[role="_abstract"]
Cluster administrators must grant users permission to perform storage migrations. Permissions to perform storage migrations are not part of the administrative or editing roles in the cluster by default.

.Prerequisites

* You have cluster administrator privileges.

.Procedure

. (Optional) To assign the user single namespace storage migration permissions, run the following command:
+
[source,terminal]
----
$ kubectl create rolebinding <role_binding_name> \
    --clusterrole=migrations.kubevirt.io:storagemigrate \
    --user=<user_name> -n <namespace>
----
+
where:
+
<role_binding_name>::  The name to assign to this role binding instance.
<user_name>::  The user to assign the storage migration permission.
<namespace>::  The applicable namespace for this role binding instance.

. (Optional) To assign the user multiple namespace storage migration permissions, run the following command:
+
[source,terminal]
----
$ kubectl create clusterrolebinding <role_binding_name> \
    --clusterrole=migrations.kubevirt.io:storagemigrate-multins \
    --user=<user_name>
----
+
where:
+
<role_binding_name>::  The name to assign to this role binding instance.
<user_name>::  The user to assign the storage migration permission.