This rule chain assigns predefined dashboard to new Thingsboard tenant admin or customer user.
IMPORTANT: The rule chain uses another chain called Thingsboard API token.
IMPORTANT: To get things working several placeholders should be replaced with the real data.
-
For this rule chain:
- NAME_OF_DASHBOARD_FOR_USERS
- NAME_OF_DASHBOARD_FOR_ADMINS
-
Placeholders for Thingsboard API token chain is described here.
You can do this in two ways:
- Download the rule chains' JSON files.
- Replace placeholders in the file. Here are links:
- Placeholders for Thingsboard API token rule chain.
- Import files to Thingsboard.
- Download the rule chains' JSON files.
- Import the files to Thingsboard.
- Open this rule chain.
- Open the Rule chain node called Get API token and specify the Thingsboard API token rule chain in the Rule chain field.
- To replace the NAME_OF_DASHBOARD_FOR_USERS and NAME_OF_DASHBOARD_FOR_ADMINS placeholders open the Transformation script node called Configuration .
- Placeholders for Thingsboard API token rule chain.
Once new tenant's admin has been created, the predefined dashboard will have been assigned to this user as the home dasboard.
Once new customer's user has been created, the predefined dashboard will have been assigned both to the customer and to this user as the home dasboard.