What you will be able to do
- Explain where a dashboard tile's query is stored and what happens to a worksheet moved into a dashboard
- Edit, duplicate, unplace or delete a tile without losing a query by accident
- Share a dashboard with collaborators or by link, and pick the permission level that fits each audience
- Diagnose a shared dashboard that fails for a viewer because of the role it runs under
Key concept
Dashboard session context — Every dashboard runs its tile queries in sessions with an assigned role and warehouse. That context decides what the tiles can read, which warehouse pays for them, and which role a viewer needs to see them.
1.Where a dashboard's queries live
A Snowsight dashboard is a set of tiles, and each tile is a chart or table built from a query. To maintain one, you first need to know where those queries are kept: inside the dashboard. When you move a worksheet into a dashboard (Move to and then a new or existing dashboard), the worksheet leaves your worksheet list. From then on you can only reach it through the dashboard, which stores the query and is where you edit it.
The move also affects your colleagues. If the worksheet was shared, everyone it was shared with loses access once it becomes a dashboard: its permissions are revoked and its links stop working. An analyst who turns a team's shared worksheet into a dashboard has quietly broken everyone else's bookmark. Share the new dashboard right away, or tell the team before you move it.
Making data ready for consumption comes down to two settings on the dashboard. The context selector sets the role and warehouse that run the tiles, and Run executes every tile query at once. The role decides which objects the tiles can read. The warehouse decides where the compute is billed. Point tiles at a curated view instead of base tables, and engineers can reshape the tables underneath without breaking the dashboard (Regular, secure and materialized views).
Checkpoint 1 of 3· Check yourself
An analyst has a worksheet that is shared with three teammates. They select Move to > New dashboard so they can turn its query into a dashboard tile. What happens to the worksheet and the teammates?
Moving a worksheet into a dashboard is not a copy. The worksheet leaves the worksheet list and its query is now stored in the dashboard. Its permissions are revoked, so the teammates lose access until the dashboard is shared with them.
“those users lose access to the worksheet when you create a dashboard because the worksheet is removed when the dashboard is created”Source: docs.snowflake.com
Sources1
2.Editing, duplicating and removing tiles without losing queries
The tile menu has two ways to edit a tile. View Chart opens the chart in a worksheet, and Edit query opens the query in a worksheet window. Either way, your changes are saved when you select the Return to button, which names your dashboard. You can also add a chart next to an existing table tile: choose Edit Query, select Chart, then return. A new chart tile appears at the bottom of the dashboard, and the table and the chart now share one query.
Before you change a tile that people depend on, use Duplicate Tile. It puts a copy at the bottom of the dashboard, so you can experiment on the copy and remove whichever version loses.
Removing a tile and deleting it are different actions. Unplace Tile takes the tile off the dashboard but keeps its query, so you can add it back later from the Add tile menu. Delete permanently removes both the tile and its query, and also removes any other tile built on that query. Unplace is the only removal you can recover from. If you aren't sure, unplace.
| Tile menu action | Effect | Recoverable? |
|---|---|---|
| Duplicate Tile | A copy of the tile appears at the bottom of the dashboard | Original is untouched |
| Unplace Tile | Tile leaves the dashboard; the underlying query is preserved | Yes, re-add it from the Add tile menu |
| Delete | Tile and its underlying query are deleted, along with any other tile using that query | No, the action cannot be undone |
Checkpoint 2 of 3· Match them up
You maintain a dashboard that other people rely on. Match each tile menu action to what it does to the tile and its underlying query.
Tap a term, then the definition that fits it.
Unplace is the only removal you can recover from, because the query is kept. Delete destroys the query and every tile that shares it. Duplicate gives you a copy to experiment on, and Edit query changes the query in place.
“Deleting a tile from a dashboard also deletes the underlying queries. This action cannot be undone.”Source: docs.snowflake.com
Sources1
3.Sharing a dashboard: collaborators, links and roles
Only editors and owners can share a dashboard, and there are two ways to do it. You can invite named collaborators, but the picker only lists users who have signed in to Snowsight before. For anyone else, turn on link sharing and send the link. Link sharing is restrictive by default: someone with the link cannot view the dashboard until you choose what link holders are allowed to do.
Each recipient gets a permission level, and the same levels apply to shared worksheets and dashboards. The owner is the person who created the dashboard, and the owner has the same permissions as an editor.
| Permission granted | What the recipient can do |
|---|---|
| Edit | Edit the contents, run it (including with a different role), manage past versions and their results, share it with others |
| View + Run | Everything View Results allows, plus run it if they have its role |
| View Results | See the most recent results if they have its role; duplicate it and run the copy with their own role |
| Link with View + Run | Run it if they have its role, see the latest results, view the contents, but not duplicate it |
| Link with View Results | See the latest results if they have its role and view the contents, but neither duplicate nor run it |
Pick the lowest level that serves the audience. Auditors who should read the latest numbers without starting new queries on your warehouse need a View Results level. Analysts who need current figures on demand need View + Run. Only co-maintainers should get Edit. The permission level also decides whose role row access policies and masking are evaluated against: View Results shows results that were already produced, while View + Run runs the queries again.
Both failures come from the role the dashboard runs under. To view a shared dashboard, a user must be using the same role as the dashboard's session context, so the manager has to switch to ANALYST_RW. Dashboards also run only with the user's primary role, whatever DEFAULT_SECONDARY_ROLES is set to. A grant that works in a worksheet through a secondary role does nothing on a dashboard. The fix is to grant the needed access to the primary role. Note that dashboards cannot be organized into folders, so you can't grant access to a group of dashboards at once.
Checkpoint 3 of 3· Check yourself
You edit a dashboard. An external auditor has never signed in to Snowsight. They need to see the latest dashboard numbers, but they must not start new queries on your warehouse. What should you do?
The invite picker only lists users who have signed in to Snowsight before, so this auditor has to get a link. Link sharing is restrictive by default: people with the link can't view the dashboard until you set what they may do. Choose view results without running. Secondary roles don't help, because dashboards run only with the primary role.
“you can choose to allow people to view the results on the dashboard, but not run the underlying queries.”Source: docs.snowflake.com
Sources
(2)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 1.
“the worksheet is removed from the list of worksheets and can only be accessed from the dashboard”
↩︎ Where a dashboard's queries live“Permissions on the worksheet are revoked and links to the worksheet no longer function.”
↩︎ Where a dashboard's queries live“Use the context selector to specify the role and warehouse to use for running the queries in the dashboard.”
↩︎ Where a dashboard's queries live“The tile is removed from the dashboard, but remains available to add to the dashboard from the Add tile menu.”
↩︎ Editing, duplicating and removing tiles without losing queries“A new tile is added at the bottom of the dashboard with a chart view of the table.”
↩︎ Editing, duplicating and removing tiles without losing queries“Editors and owners can share a dashboard with individual collaborators or by enabling and using link sharing.”
↩︎ Sharing a dashboard: collaborators, links and roles“To view shared dashboards, the Snowflake user must use the same role as the session context for the queries that drive the dashboard.”
↩︎ Sharing a dashboard: collaborators, links and roles“The queries that drive dashboards in Snowsight use unique sessions with assigned roles and warehouses.”
↩︎ Key concept“Deleting a tile from a dashboard also deletes the underlying queries. This action cannot be undone.”
↩︎ Exam trap 1“By default, people with the link cannot view the dashboard.”
↩︎ Exam trap 2“Dashboards run exclusively with the user’s primary role, regardless of the value set for DEFAULT_SECONDARY_ROLES.”
↩︎ Exam trap 3“those users lose access to the worksheet when you create a dashboard because the worksheet is removed when the dashboard is created”
↩︎ Checkpoint“such as a table and chart view of the same query results, both tiles are deleted”
↩︎ Prediction“Deleting a tile from a dashboard also deletes the underlying queries. This action cannot be undone.”
↩︎ Checkpoint“you can choose to allow people to view the results on the dashboard, but not run the underlying queries.”
↩︎ Checkpoint - 2.
“The worksheet owner is the user who created the worksheet and has the same permissions as a worksheet editor.”
↩︎ Sharing a dashboard: collaborators, links and roles“View the results of the most recent worksheet version, provided they have the worksheet role. Duplicate and run the worksheet using their own role.”
↩︎ Sharing a dashboard: collaborators, links and roles