...
For this, you need to right click on the group in which you want to dynamically group devices
once you click on "Add Dynamic Group" you have a number of criterias you can select to group your devices:
The full criterias list includes the following values for grouping devices:
...