# Preparing a role patch

Role level patches are used to migrate all the pages, data sources and other UI components associated with a role from one instance of the CloudIO platform to another.

{% hint style="info" %}
**Note**: Role migration does not impact underlying db objects.
{% endhint %}

To prepare a role patch,

1. On the upper right corner of the CloudIO homepage, click ![](/files/-M-mqQrhvyhl1QdlDK3f) . The **Navigation** page is displayed.

![](/files/-M-nn3fQAk52BGEJLA3m)

&#x20;2\. Under Administration, click **Manage Roles.** The **Manage Roles** page is displaye&#x64;**.**

![](/files/-M-nriGyVqWFWzvFq-f4)

&#x20;3\. On the required role, click ![](/files/-M-nw_oOUqs7qZm9iLXe) .The edit page is displayed.

![](/files/-M2D-LMBIaiW2Nyk67fv)

&#x20;4\. If required, assign one or more of the following components to the role through the respective tabs/sections:

* Datasources
* Java Snippets
* HTML Requests
* HTML Templates
* Workflow Nodes
* Workflow Definitions
* Users&#x20;
* Pages

&#x20;5\. On the upper right corner, from the **Actions** list, select **Prepare Patch**. A confirmation box is displayed.

![](/files/-M-oAm8ebcripNz9l5RN)

&#x20;6\. Click **Yes**. The processing for your patch preparation request will be initialized.

&#x20;7\. Click **Okay**. The required role patch is prepared. **OR** To view the details of the patch status, click **Go to patches screen** and click **Download**. The list of patches that available for downloading is displayed.

![](/files/-M-n5h83689T2EqQTwtS)

![](/files/-M-n7f9eVRMk99es5Wja)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudio.io/working-with-patches/working-with-patches/role-patch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
