Set model connection name dynamically

Hi,

I cannot believe this is so difficult to find an answer to.

We are embedding Looker dashboards via SSO signed URLs in an iframe. This iframe will be served in different client environments, and of course we need a separate connection per environment. We need to be able to set a model connection NAME dynamically, possibly via user attributes.

The link below talks about parameterised connections, but I don’t want to get PARAMETERS of a connection from user attributes, I want to set connections in my connections list, and then based on a user attribute value choose one of these connections. So in my model LookML I would have:

connection: {{_user_attributes[‘connection’]}}

Is this possible?

https://community.looker.com/lookml-5/dynamic-connections-for-models-8824
2 6 1,319
6 REPLIES 6
Top Labels in this Space
Top Solution Authors