Connector setup with a user attribute
Last updated
Was this helpful?
Last updated
Was this helpful?
In this section, we'll explore the seamless process of configuring connectors to dynamically connect to specific servers based on user attributes. This functionality proves especially beneficial in scenarios involving a single-tenant data architecture, where data is distributed across various servers corresponding to different users.
Let's dive into an illustrative example of how to configure a connector to establish a connection with a PostgreSQL server based on user context. The key to achieving this lies in template-based configuration, specifically manipulating the HOST field while referencing the user attribute โpg_hostโ.
Create a new connector, or edit an existing connector.
Configure the connector following the example below, by referring to the variable for the HOST field.
More on variable syntaxes in this .