Knowledge Drop

How do I make my dashboard timezone listen to the timezone defined in my embed URL?

Userlevel 5
  • Looker Staff
  • 172 replies

Last tested: Nov 2020



  1. Enable User-Specific Timezones in the Admin panel.

  2. Add the user_timezone as one of the embed URL parameters when generating the embed URL.

  3. After the embed URL loads the dashboard, the embed user can switch to Viewer Timezone in the timezone dropdown menu at the top right.

But what if i want to have the embed dashboard loaded with the user-specific timezone by default?

Steps 1 and 2 stay the same. Instead of having the embed user switch the timezone in Step 3, use one of the following options.

Option 1: Save the dashboard with the default timezone "Viewer Timezone". This will use the user's timezone as default for both embed users and non-embed users.

Option 2: We can add &query_timezone=user_timezone as part of the dashboard URL. This will make the user's timezone selected by default even if it is not the saved default timezone for the dashboard. Note that the user_timezone is one of the embed URL parameters, but the query_timezone is not an embed URL parameter; it is part of the target URL.

Example of correct body for create_sso_embed_url call:

{"target_url":"","external_user_id":"1024","permissions": ["access_data", "see_user_dashboards"],"models": ["the_model","mysql_model"],"user_timezone":"America/New_York"}

Resulting URL:

Example of INCORRECT body:

{"target_url":"","external_user_id":"1024","permissions": ["access_data", "see_user_dashboards"],"models": ["the_model","mysql_model"],"user_timezone":"America/New_York","query_timezone":"user_timezone"  #DON'T DO THIS}

0 replies

Be the first to reply!