> For the complete documentation index, see [llms.txt](https://docs.g-iot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.g-iot.io/platform-user-guide-book/device/device-dashboard-details/add-device-rules/copy-rules-to-group-of-device.md).

# Copy Rules to Group of Device

The **Copy Device Rules to Device Group** function allows users to efficiently apply existing device rules to multiple devices within a group. Instead of manually configuring rules for each individual device, this feature enables a streamlined process where selected rules from one device can be **copied and assigned** to an entire group, ensuring consistency and reducing configuration time.

With this tool, users can:

* Select a source device with predefined rules.
* Choose a target group where the rules will be applied.
* Ensure that only compatible devices within the group receive the copied rules.

This function is especially useful for managing large-scale deployments, ensuring uniform rule application, and reducing manual setup efforts.

<figure><img src="https://122097802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfEQ6KpTjmszWVWQqgcEa%2Fuploads%2FlK7hb0DZAdeFZuEk28IH%2Fcopy%20rule.png?alt=media&amp;token=70b037b8-a53c-492d-87ba-bf4406cdfa0e" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
NOTE: The Copy Rules function is restricted to devices with:\
The same firmware version&#x20;

The same hardware version&#x20;

The same hardware capabilities&#x20;

The same device model name (eg LowCostTrackerNG - Advanced)
{% endhint %}

#### **Steps to Copy Device Rules to a Device Group**

1. **Open Devices:** From the **Cockpit menu**, navigate to **Devices** and select the desired device.
2. **Access Rules Section:** Open the **device dashboard** and click on the **Rules** tab.
3. **Ensure Rules Are Configured:** Verify that all necessary rules have been properly set up for the selected device.
4. **Initiate Rule Copy:** Click on the **Copy Rules** icon located at the **top-right corner** of the Rules page.
5. **Select Target Group:** Choose the **device group** where the rules should be copied.
6. **Confirm and Apply:** Click **Continue** to proceed, and the rules will be copied to **all compatible devices** within the selected group.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.g-iot.io/platform-user-guide-book/device/device-dashboard-details/add-device-rules/copy-rules-to-group-of-device.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
