Solution Patterns
Let end users manage metrics
Let customers hide or show metrics on an embedded dashboard for their whole company. Turn on Manage metrics for the embed in Data Studio > Data Apps first.
Do this with your agent
embed-dashboardHelp me with this Databrain task: Let end users manage metrics. Check the current dashboard, host app and guest token scope where relevant. Show the planned changes and how to verify them. Ask before applying changes.
Manage metrics lets end users choose which metrics show on the dashboard. The choice applies to everyone with the same clientId.
Before you start
- The dashboard is in a data app as a dashboard embed.
Steps
-
Go to Data Studio > Data Apps and open the data app.
-
Select the Embeds tab, then select the dashboard embed’s row. The page says Choose what end users can do inside this embed.
-
Turn on Manage metrics and select Save at the bottom of the page.

The embed's access settings. Manage metrics is the third switch. -
In the embedded dashboard, the end user selects Settings, then Manage Metrics.

Settings in the top right of the embedded dashboard opens Manage Metrics. -
In the Manage Metrics dialog, they tick a metric to show it or clear it to hide it. With the v2 embed design, Show all and Hide all are also in the footer.
-
They select Save. Discard closes the dialog with no change.

Each metric has a box. Here Monthly revenue is cleared, so it hides after Save.
The hidden metrics stay hidden on future visits, for every person at that customer.
Manage and delete are different
- Manage metrics hides or shows a metric. The metric still exists.
- Delete metrics (
isEnableArchiveMetrics) removes it from the dashboard for that client. With it off, a person can still delete metrics they created themselves.
To set these per token, send "permissions": { "isEnableManageMetrics": true } or "isEnableArchiveMetrics": true. The token wins over Access control.
If something goes wrong
- “Access denied: isEnableManageMetrics.” Manage metrics is off for this embed or token.
- “Access denied: isEnableArchiveMetrics.” The user tried to delete a metric they did not create, and Delete metrics is off.
See Token body.