thingsboard: Assignments to multiple customers or public (devices, dashboards) doesn't work
Expected Behaviour
We can assign a dashboard to multiple customers, including the Public customer. We can assign a device to multiple customers, including the Public customer.
Current Behaviour
TB lets us assign a Dashboard to multiple customers (new in 1.4!!) However, we can’t assign a device to multiple customers. This is required to get the dashboards assigned to multiple customers working, ie showing data!
TB lets us declare a Dashboard as public. But we can’t display data from private devices (assigned to specific customer). We have to make all the devices public for this to function properly.
Possible Solution
Just like dashboards, devices can be assigned to multiple customers, including Public.
Steps to Reproduce (for bugs)
- Assign a dashboard to multiple customers, A, B and C
- Assign device D1 to specific customer A
- Log in as customer B. Dashboard doesn’t show the data from device D1.
- Assign a dashboard to multiple customers, A, B and C
- Assign device D1 to Public customer
- Log in as customer A, B and C. Dashboard doesn’t show the data from public device D1.
- Assign a dashboard to the customer A
- Assign device D1 to specific customer A
- Data is shown on dashboard
- Make dashboard public
- Data from device D1 is not shown on the public dashboard.
Context
Not able to assign a device to multiple customers, including Public makes the whole multiple customers per dashboard assignment useless…
Example: Getting weather data or other data in, and assign this to multiple customer dashboards. This simply doesn’t work right now, as the public device data is not shown on the customer dashboards.
Your (Docker) Environment
-
Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 16.04 LTS
-
ThingsBoard
1.4(e.g. CE 1.4 or PE 1.4): -
Database used
Postgres(e.g. HSQLDB, Cassandra, Postgres): -
Docker version
17.12(e.g. Docker 17.12 ): -
Are you using Docker Swarm or Kubernetes? Docker Swarm
-
Link to your project or a code example to reproduce issue:
Diagnostic information
N/A
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (1 by maintainers)
There is a new feature that will be released in the Thingsboard 2.3 - Role-Based Access Control. You can implement the requested case (assign multiple devices to multiple customers with different permission levels) https://thingsboard.io/docs/user-guide/rbac/