Welcome to the Alteryx Knowledge Base
Created/Edited -
This article explores how organizations can manage credential behavior at runtime using Alteryx’s Data Connection Manager (DCM). It builds on governance principles introduced in the previous article, "Implementing DCM into Your Governance Model" and focuses on how connections and credentials are controlled during workflow execution.
- Alteryx Designer
- Alteryx Server
Where the previous article established governance roles and connection ownership models, this article layers on the execution dimension: who runs the workflow with what credentials; all supporting the authentication strategy in line with your data source(s) requirements. The same personas and governance models still apply—this article builds directly on them to help Admins design runtime behavior aligned with organizational policies.
Importance of Runtime Credential Substitution
In some cases, the credentials used during workflow design must differ from the ones used at runtime (when the workflow runs on Server). This is often due to security, audit, or deployment needs, such as:
- Running workflows with a shared service account
- Enforcing access control for production data
- Mapping credentials by environment (for example, DEV vs. PROD data source)
- Supporting credential-level auditing
Connection Sharing Models
DCM supports several sharing models that determine how credentials are applied during workflow development and execution.
| 🗒️ NOTE: A connection includes a data source and a credential. You can share connections with or without credentials. If a different credential is used at runtime, the result is credential substitution. |
|
Connection Sharing |
Who Links Credential? |
Used in Designer? |
Credential Used at Runtime |
Use Case |
|
Shared With Credentials |
Admin/Developer (connection owner) |
Yes |
Shared Credential |
Team pipelines and shared access |
|
Shared Without Credentials |
Developer (using the connection) |
Yes |
Developer Credential |
User-level auditing or OAuth interactive flow |
|
Share to Run on Server Only (Execution) |
Admin/Developer (connection owner) |
No |
Shared Credential |
Server execution with service accounts |
1. Shared With Credentials
- Connection is shared with a credential.
- Users can use the connection in Designer.
- Workflows use the same credentials.
- Best for team development in less sensitive environments where service accounts can be used in Designer.
2. Shared Without Credentials
- Connection is shared, but users must link their credentials.
- Credentials can be added in Designer or Server UI.
- Supports user-level access control and auditing.
- Required for OAuth flows using an interactive flow.
3. Share to Run on Server Only
- Connection is shared only for execution.
- Not available in Designer.
- Best for service accounts used in production workflows.
- Common in environments that separate design from execution for security reasons.
NOTE: Combine sharing models to support hybrid authentication. For example, use a shared connection without credentials for development and an execution-only connection for production. Use Connection Handling Rules to link them. This approach allows interactive development while enforcing controlled credentials in production.
Connection Handling Rules
Alteryx supports credential substitution at runtime through Connection Handling Rules. These rules let Admins map one or more design-time connections (such as DEV or a user account) to a different runtime connection (such as PROD or a service account) when the workflow runs on Server.
- Rules are created in the Admin section of the Server UI (requires Curator role).
- The design-time workflow stays unchanged—credential substitution happens dynamically at runtime. The workflow is not modified.
- Users must have access to the substituted (runtime) connection, or the workflow will fail.
- Supports both standard and Vault-backed credentials.
| 🗒️ NOTE: When setting up a Connection Handling Rule, the design-time connection is called the Source Connection, and the runtime connection is called the Target Connection. This helps in implementing credential changes between design and execution. |
This feature is key for implementing credential changes between design and execution.
Now let’s review some scenarios where this applies.
Credential Execution Scenarios - An Overview
Read below to identify the scenario that best meets your requirements. Then, see details on the scenario in the next section.
Scenario 1 Overview: Interactive-to-Service Credential Swap
When using OAuth with MFA for design-time but a service account for runtime (Scenario 1 above), define a Connection Handling rule that maps the design-time connection (e.g., “Snowflake Dev - User OAuth”) to the execution connection (e.g., “Snowflake Prod - ServiceAcct”) for the Server. This way, as the workflow is run on Server, Alteryx automatically uses the service account connection behind the scenes. The workflow itself doesn’t need to be altered and developers don’t need to be aware of the production credential details. The rule only takes effect during execution on Server, leaving the design workflow unchanged (developers continue to use their OAuth credentials in Designer).
| ℹ️ Scenario 1 here aligns with Scenario 2A in the guide “Implementing DCM into your Governance Model”. |
Scenario 2 Overview: Credential Substitution Across Environments
This scenario covers how Admins can configure workflows to use different credentials at runtime than those used during development. This is done with Connection Handling Rules, which swap the design-time connection with a runtime version automatically when the workflow runs on Server.
While the mechanism is the same, it’s used in a few different scenarios. Two of the most common:
-
Environment-Based Mapping
This is when the same workflow needs to run in multiple environments—like Dev, QA, and Prod—each with its own data source or credential. Instead of modifying the workflow each time, Admins use handling rules to map the “Dev” connection to the correct environment-specific one at runtime. The workflow stays the same, but the credentials change depending on where it runs.
| ℹ️ Scenario 2 aligns with Scenario 3 in the guide “Implementing DCM into your Governance Model”. |
-
Credential Elevation/Machine Type Credential
This is when developers build workflows using lower-access credentials (like read-only or user accounts), but the workflow needs to run with a more privileged credential in production. Admins can configure a handling rule so that the Server automatically substitutes a stronger credential—like a write-enabled service account—at runtime. This supports audit, access control, and operational safety.
Let’s dive into these scenarios.
Scenario 1: Interactive Authentication for Design, Service Credential for Execution
Use this pattern when interactive authentication (for example, OAuth + MFA) is required during development, but workflows must run using a service credential.
Use Case:
- OAuth or SSO required for secure user access
- Server-based execution must use non-interactive credentials
DCM Strategy:
- Admin shares a connection without a credential. The developer links their OAuth credential in Designer.
- Admin creates a separate connection with a machine credential.
- Admin creates a Connection Handling Rule to map the design-time connection to the machine credential at runtime.
- Best for environments requiring MFA or interactive login for design-time access
| ℹ️ This scenario aligns with Scenario 2A in the in the Implementing DCM into Your Governance Model article. |
Scenario 2: Credential Substitution Across Environments
A common use case involves managing workflows across multiple environments as part of the SDLC. In this setup, production servers are centrally managed, and users cannot publish directly to them.
Use Case:
The same workflow moves through different environments but must authenticate with different credentials in each one.
DCM Strategy:
- The Developer uses a shared QA connection and builds a workflow in Designer.
- The workflow is published to QA. Once it is promoted to PROD, a Connection Handling Rule maps the QA connection to a PROD connection.
- Best for organizations with a formal deployment process with environment-specific execution credentials.
In this scenario, the following are to be noted:
- Server Configuration
- Sync is disabled.
- Connections are not shared for collaboration- only with users who need to run workflows.
- All DCM connections on the server are created and managed by Admin.
- Connection Governance
- Admins own and manage all connections in PROD.
- Workflows run using pre-assigned Target Connections defined through Connection Handling Rules.
Data Source Specific Credential Strategies
Credential substitution supports many modern platforms that enforce secure, user-based design-time authentication but require machine credentials for runtime.
NOTE: These strategies are general guidelines based on common use cases. The available authentication methods—such as OAuth or service accounts—depend on how your data source and identity provider are configured. Alteryx supports many methods, but cannot bypass source system restrictions. Check with your data or IT team to confirm what is allowed in your environment.
The table below provides an overview of the available options by data source.
|
Data Source |
Design-time |
Runtime |
Community article (where available) |
|
Snowflake |
| ||
|
Google BigQuery |
Google Generic OAuth user consent |
|
|
|
Databricks | |||
|
Sharepoint |
Connect your organization to SharePoint with single DCM connection in Azure Entra/AD |
Learn more about Implementing DCM into your governance model here.
Next Article in the Series
Full series of articles
- DCM: Implementing Data Connection Manager into your Governance Model
- DCM: Implementing Credential Execution Strategies with DCM
- DCM: What the Data Connection Manager is and How It Compares to Server Data Connections
- DCM: Setting Up the DCM Environment and Syncing With Server
- DCM: Creating Connections for Designer Users and Server Workflow Execution
- DCM: Sharing and Syncing DCM Connections
- DCM: Setting Up DCM Connection Handling Rules
- DCM: Developing Designer Workflows with Shared Connections and Uploading Them to Server