Hi All,
I have a question about how to correctly apply Inventory Roles to limit visibility within an assets hierarchy. I’d like to understand if this isn’t doable in Cumulocity or if there is some workaround.
Consider the following scenario:
I have created an assets hierarchy through the Digital Twin Manager, with 3 nested levels: House > Rooms > Devices
Then I defined 3 users and a single Inventory Role with full access to everything (type = *) with READ permission.
I’d like to obtain the following behavior:
- User 1 has access (read-only) to the full hierarchy (house, rooms and devices)
- User 2 has access (read-only) ONLY to Room 1 and its devices
- User 3 has access (read-only) ONLY to Room 2 and its devices
I managed to give User 1 the right permissions by assigning the Inventory Role to the parent asset (House), which in turn is applied also to the children (all rooms and devices)
For users 2 and 3 however, it is not working. I assigned the same Inventory Role at Room level (instead of House), but when accessing the navigation menu the whole asset tree is no more visible.
For example, when accessing as User 2, I was expecting to see the House asset in the navigation menu, and when expanding it, to see only sub-asset Room 1 (and its devices).
Is this a hard limit of Cumulocity? Are there any alternatives to get to the desired result?
Any help would be much appreciated
Thanks