Assignments to multiple customers or public (devices, dashboards) doesn't work
See original GitHub issueExpected 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
Issue Analytics
- State:
- 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/
no
Il presente messaggio e-mail e ogni suo allegato devono intendersi indirizzati esclusivamente al destinatario indicato e considerarsi dal contenuto strettamente riservato e confidenziale. Se non siete l’effettivo destinatario o avete ricevuto il messaggio e-mail per errore, siete pregati di avvertire immediatamente il mittente e di cancellare il suddetto messaggio e ogni suo allegato dal vostro sistema informatico. Qualsiasi utilizzo, diffusione, copia o archiviazione del presente messaggio da parte di chi non ne è il destinatario è strettamente proibito e può dar luogo a responsabilità di carattere civile e penale punibili ai sensi di legge. Questa e-mail ha valore legale solo se firmata digitalmente ai sensi della normativa vigente.
The contents of this email message and any attachments are intended solely for the addressee(s) and contain confidential and/or privileged information. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately notify the sender and then delete this message and any attachments from your system. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. Unauthorized disclosure and/or use of information contained in this email message may result in civil and criminal liability. “ This e-mail has legal value according to the applicable laws only if it is digitally signed by the sender Da: redasdasd @.> Inviato: mercoledì 30 novembre 2022 13:26 A: thingsboard/thingsboard @.> Cc: Cortesi Paolo @.>; Comment @.> Oggetto: Re: [thingsboard/thingsboard] Assignments to multiple customers or public (devices, dashboards) doesn’t work (#669)
Are there any updates for this issue?
Dashboard X is shared by all customers 1 and 2. Device A, B and C When customer 1 views Dashboard X, devices A, B are visible. When customer 2 views Dashboard X, devices B, C are visible. how to do it?
— Reply to this email directly, view it on GitHubhttps://github.com/thingsboard/thingsboard/issues/669#issuecomment-1332069243, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKK7MJYLDQBQHCVGTGH6HQDWK5BVHANCNFSM4EWNISLA. You are receiving this because you commented.Message ID: @.***>
CAUTION: External email. Do not click links, open attachments or reply unless you recognize the sender and know the content is safe.
ATTENZIONE: Questa e-mail proviene da un dominio esterno al perimetro Leonardo. Non cliccare su collegamenti, aprire allegati o rispondere a meno che non si riconosca il mittente e si sappia che il contenuto è sicuro.
Company Internal