Accessing an Insights dashboard returns a 401 error, "You are not authenticated to view this page"

Why are users getting a 401 error, "You are not authenticated to view this page" when selecting dashboards in Insights?

Issue Description

When administrators and other authorized, authenticated users attempt to access Insights dashboards, they may encounter a 401 error indicating that they are not authenticated to view the resulting content.

Chrome browser window shows You are not authenticated to view this page 401 error.

Troubleshooting

To identify the source of the error, have an Insights-licensed user generate a HAR file while authenticating through Orchestrator, accessing Insights, and then selecting a dashboard.

If the HAR file indicates a 401 error when accessing Looker.com, it is caused by the browser being restricted to the same site cookies for authentication, which is addressed by the resolution below.

Resolution

  1. Changed chrome://flags/#same-site-by-default-cookies setting SameSite by default cookies flag from Default / Enabled to Disabled

Image_2024-07-24_12-37-46.png

  1. In chrome://settings/content/cookies, enabled toggle for Allow sites to save and read cookie data
  2. Add the following domain for allowing third-party cookies: [*.]looker.com

Image_2024-07-24_12-36-07.png