Once Portainer manages more than one machine, the list gets long fast. Groups keep it tidy, and they save work when you give someone access.
In the menu, expand Environment-related, choose Groups and click Add group. Give it a name and an optional description, apply tags if you like, and use Associated environments to add the environments. Then click Create.
The Portainer docs give development, staging and production as examples. A home version could be one group for the server in the closet and one for a remote machine.
The useful part is access. You can give users or teams a role on a group, and they inherit access to every environment in it. Add a new machine to the group later and the same people can use it, without you touching each user. You can also add or remove several environments at once from the group’s edit view.
The caveat is the edition. Community Edition supports basic user and group assignments, and for more complex roles inside groups you need Business Edition. Check what your role choices are before you plan a layout around them.
Further reading: Portainer: environment groups