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.
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
- Changed chrome://flags/#same-site-by-default-cookies setting SameSite by default cookies flag from Default / Enabled to Disabled
- In chrome://settings/content/cookies, enabled toggle for Allow sites to save and read cookie data
- Add the following domain for allowing third-party cookies: [*.]looker.com