# Subgroups

CubiLock further improves on Groups by providing **Sub Groups** within a Group or other Sub Groups. This allows enterprises to keep a logical hierarchy for example, for an **Admin** group some devices should be promoted to **Super Admin** devices with fewer restrictions meanwhile others should be **Regular Admin** devices. This is possible using Sub Groups without any hassle.

### Create Sub Groups:

From your CubiLock console:

1. Navigate to **Device Groups** using the side menu.
2. Click the group name to open group detail or the three-dot **Menu** and **Edit** to modify the group.
3. From here click on **Sub Groups** tab and click on **Add Subgroup**.
4. Enter the subgroup name and select a profile to associate with the subgroup.
5. Click **Submit** to create a subgroup.

### Add Device in Sub Group:

From your CubiLock console:

1. Navigate to **Device Groups** using side menu.
2. Click the group name to open group details or the three dot **Menu** and **Edit** to modify group.
3. In the **Sub Groups** tab, click on the sub group name to open sub group details or click the three dot **Menu** and **Edit** to modify sub group.
4. From sub group detail click on **Add Devices**.
5. Select device(s) from the list of available devices and click **Submit**.
6. Your selected device(s) will be added to the sub group and you will be able to view it.

### Finding Device from Sub Group:

From your CubiLock console:

1. Navigate to **Device Groups** using side menu.
2. Click the group name or the three dot **Menu** and **Edit** to open group details.
3. In the **Sub Groups** tab, click on the sub group name or click the three dot **Menu** and **Edit** to open sub group details.
4. Under the Devices tab, use the search text bar to enter Device Name.
5. Press enter or click the search icon next to search text bar to filter out devices matching entered device name.

### Remove Device from Sub Group:

From your CubiLock console:

1. Navigate to **Device Groups** using side menu.
2. Click the group name to open group details or the three dot **Menu** and **Edit** to modify group.
3. In the **Sub Groups** tab, click on the sub group name to open sub group details or click the three dot **Menu** and **Edit** to modify sub group.
4. Here you will be able to see all devices added in the current sub group. To remove a device click on the three dot **Menu** in front of it and click **Remove Device**.
5. **Confirm** that you want to remove it from the sub group.
6. Your selected device(s) will be removed from the sub group.

{% hint style="info" %}
Deleting **Sub Group** does not remove devices from the enterprise. The devices retain the last applied Device Profile.
{% endhint %}


---

# 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.cubilock.com/group-management/subgroups.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.
