Embedding: Role based Dashboard Filtering
Dashboard Filtered based on the user role.
Last updated
Dashboard Filtered based on the user role.
Last updated
Create a Dashboard Filter
In your dashboard, create a new âDashboard Filterâ.
In the "Apply On" section, enable the App Filter option.
You can link a guest token here to pass the filter values dynamically.
Refer the below document to generate a guest token.
âšī¸TokenMake sure the options and values match the data type of the filter for successful integration.
Letâs assume you have three roles:
Admin
Editor
Viewer
And two Dashboard Filters:
Country: ["USA","CANADA","MEXICO","CHINA","INDIA"]
Company: ["ALPHABET","GOOGLE","APPLE"]
And below is the access level of each role:
Role/Dashboard Filters | Company | Country |
---|---|---|
Admin | All Companies | All Countries |
Editor | All Companies | USA, CANADA, MEXICO |
Viewer | Alphabet | USA |
Now using the information from the table above, you can input the values to generate a guest token according to the specified role.
Guest token for Admin:
Guest token for Editor :
Guest token for Viewer: