Skip to content

Latest commit

 

History

History

assign-dashboard-to-new-user

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

ASSIGN DASHBOARD TO NEW USER

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.

Configuration

IMPORTANT: To get things working several placeholders should be replaced with the real data.

  1. For this rule chain:

    • NAME_OF_DASHBOARD_FOR_USERS
    • NAME_OF_DASHBOARD_FOR_ADMINS
  2. Placeholders for Thingsboard API token chain is described here.

You can do this in two ways:

(1) Before importing

  1. Download the rule chains' JSON files.
  2. Replace placeholders in the file. Here are links:
  3. Placeholders for Thingsboard API token rule chain.
  4. Import files to Thingsboard.

(2) After importing

  1. Download the rule chains' JSON files.
  2. Import the files to Thingsboard.
  3. Open this rule chain.
  4. Open the Rule chain node called Get API token and specify the Thingsboard API token rule chain in the Rule chain field.
  5. To replace the NAME_OF_DASHBOARD_FOR_USERS and NAME_OF_DASHBOARD_FOR_ADMINS placeholders open the Transformation script node called Configuration .
  6. Placeholders for Thingsboard API token rule chain.

Result

Tenant's admin

Once new tenant's admin has been created, the predefined dashboard will have been assigned to this user as the home dasboard.

Customer's user

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.