Hi,
The use case we have in mind is the following.
Suppose you have one or more factories. Each factory has an instance of OpenRemote to manage the assets there, independently of other factories.
Each factory, however, has devices/assets from various suppliers. Suppliers would like to monitor the operation of their devices/assets on those factories (using OpenRemote as well).
To do that, a gateway is needed for each supplier. Moreover, such a gateway needs to be filtered, that is, not everything is shared with the supplier. Those on the factory should be able to chose what is shared (e.g., by linking assets to a service user corresponding to that supplier).
The need for a gateway “filter” is the reason why we included not only the id but also a username in the connection data structure. That is also the reason for this and this.
Hope this help. Please let me know if you have any questions.
Best regards,
Adriano Carvalho