Step 4. Share data with Customer
ThingsBoard supports multi-tenancy, allowing you to securely share devices and dashboards with different customers while keeping their data fully isolated.
Customer in ThingsBoard is a logical container used to isolate data and provide controlled access for external users under a tenant.
In this step, you will:
- create a Customer;
- assign a device and dashboard to the Customer;
This demonstrates how ThingsBoard ensures secure data isolation between customers.
Step 4.1 Create a Customer
Section titled “Step 4.1 Create a Customer”To create a new customer:
- Navigate to Customers.
- Click + Add customer.
- Enter My New Customer as the title.
Optionally, provide an address, phone number, or other additional details. - Click Add.
The Customer has been created.
Step 4.2 Assign the Device to the Customer
Section titled “Step 4.2 Assign the Device to the Customer”To allow the Customer to interact with the device and view its telemetry, assign the device to the Customer.
- In the Customers list, click Manage customer devices for My New Customer.
- Click + Assign new device in the top-right corner of the table.
- Select Thermometer from the list and click Assign.
The device is assigned to the Customer.
Step 4.3 Assign the Dashboard to the Customer
Section titled “Step 4.3 Assign the Dashboard to the Customer”Now assign the dashboard to the customer to allow their users to view the data displayed on it. Customer users will have read-only access to the dashboard and will not be able to add, modify, or remove widgets.
- In the Customers list, click Manage customer dashboards for My New Customer.
- Click + Assign new dashboard in the top-right corner of the table.
- Select My Dashboard from the list and click Assign.
The Customer now has access to the dashboard.