device group

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2025-02-17 21:59:03 +08:00
parent 8312506fa9
commit e0b670a839
16 changed files with 213 additions and 78 deletions
@@ -17,15 +17,27 @@ On the right side of the strategy menu, you can see the number of devices actual
![](/docs/en/self-host/rustdesk-server-pro/strategy/images/strategy_menu.png)
#### Device Strategy and User Strategy
#### Device Strategy, User Strategy and Device Group Strategy
Strategies are applied according to the following priority order:
1. Device Strategy (Highest priority)
2. User Strategy
3. Device Group Strategy (Lowest priority)
Each device can only be managed by one strategy at a time. The priority system works as follows:
- Device strategies take priority over both user strategies and device group strategies
- User strategies take priority over device group strategies
- Device group strategies apply to all devices in the device group that don't have a device strategy or user strategy assigned
Each device can only be managed by one strategy, and device strategies take priority over user strategies. User strategies are responsible for managing all devices under the user that are not assigned a specific strategy.
#### Edit Devices
When you click the `Edit Devices` menu, an editing dialog box displaying all the devices will open. You can change the selection status of the checkboxes and then click the `Save` button to apply the device changes made on the current page. If you need to modify devices on other pages, please navigate to those pages. You can also use the drop-down menu in the upper right corner to filter devices.
Here is an example of the dialog box that appears when you click `Edit Devices` on the "demo2" menu. In this example, the device "362587269" is applied to the "demo2" strategy. The device "157333666" was originally applied to the default strategy but will be applied to the "demo2" strategy after clicking `Save`. The device "232026634" has a device strategy for "demo1" and a user strategy for "demo2", since the device strategy takes priority, this device will be applied to the "demo1" strategy.
Strategy column format: device strategy/user strategy/device group strategy, or "-" for the default strategy.
Here is an example of the dialog box that appears when you click `Edit Devices` on the "demo1" menu. In this example, the device "1981241962" is applied to the "demo3" strategy; The device "1279471875" is applied to the "demo2" strategy; The device "a123456" is applied to the "demo1" strategy; The device "1227624460" is applied to the default strategy.
.
![](/docs/en/self-host/rustdesk-server-pro/strategy/images/edit_devices.png)
@@ -33,10 +45,18 @@ Here is an example of the dialog box that appears when you click `Edit Devices`
When you click the `Edit Users` menu, an editing dialog box displaying all the users will open. You can change the selection status of the checkboxes and then click the `Save` button to apply the user changes made on the current page. If you need to modify users on other pages, please navigate to those pages. You can also use the drop-down menu in the upper right corner to filter users.
Here is an example of the dialog box that appears when you click `Edit Users` on the "demo2" menu. In this example, the user "user2" was originally applied to the default strategy and will be applied to the "demo2" strategy after clicking `Save`. The user "user1" is applied to the default strategy, and the user "admin" is applied to the "demo2" strategy.
Here is an example of the dialog box that appears when you click `Edit Users` on the "demo2" menu. In this example, the user "admin" is applied to the "default" strategy; The user "user1" is applied to the "demo2" strategy; The user "user2" is applied to the "demo3" strategy.
![](/docs/en/self-host/rustdesk-server-pro/strategy/images/edit_users.png)
#### Edit Device Groups
When you click the `Edit Device Group` menu, an editing dialog box displaying all the device groups will open. You can change the selection status of the checkboxes and then click the `Save` button to apply the device group changes made on the current page. If you need to modify device groups on other pages, please navigate to those pages. You can also use the drop-down menu in the upper right corner to filter device groups.
Here is an example of the dialog box that appears when you click `Edit Device Group` on the "demo1" menu. In this example, the device group "device_group1" is applied to the "demo1" strategy; The device group "group2" is applied to the "demo2" strategy; The device group "group3" is applied to the "default" strategy.
![](/docs/en/self-host/rustdesk-server-pro/strategy/images/edit_device_groups.png)
#### Strategy Synchronization
Each device can only be managed by one strategy, and if that strategy is disabled, the device will not be managed by any strategy. When synchronizing strategies, RustDesk records the local and server strategy timestamps to determine whether synchronization is necessary. That is, after strategy synchronization is complete: