> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sources

> Once you connect a data source to Connect AI, every tool you have connected can query it. Use the Sources page to create and manage your connections.

![Sources](https://mintcdn.com/cdata/5oxDXGaSf7Hfm4y2/en/images/sources.png?fit=max\&auto=format\&n=5oxDXGaSf7Hfm4y2\&q=85\&s=7289aa99c61cafd328cd264354509b76)

The **Sources** page contains the following information about each connection:

* **Connection Name** and **Data Source**—the user-defined name of the connection and the data source type of the connection. This column also contains an icon indicating that the data source supports custom reports.
* **Last Queried**—the last time a user queried the data.
* **Status**—The status of the connection, which can be one of the following:
  * **Authenticated**—the connection to the data source is successful.
  * **Not Authenticated**—the connection was created in Connect AI, but is not successfully connected to the data source. You can return to the connection's edit screen to authenticate the connection. Note that Query users need to contact an administrator to authenticate a connection.
  * **Conditional**—the connection is conditional based on the global settings and tables added to the connector. This occurs with the API connector.
* **Last Modified**—the date and time a user last modified the connection. Click the user icon next to the date and time to display the user who last modified the data.

## Connection Methods

You can connect data sources to Connect AI in one of two ways:

* OAuth, which enables you to sign in directly through the data source’s website, using that data source’s interface.
* Manual credential entry, where you enter your connection information (such as username, password, and URL) in the Connect AI interface. Then your information is transmitted securely to connect to your data source.

Click the name of a data source in the navigation pane of this documentation to open setup instructions for that data source.

## Add a Connection

> [!NOTE]
>
> Connections are specific to a workspace. Before you add a connection, select the workspace it belongs to from the **Workspace** drop-down list in the navigation pane. Only users and service accounts in that workspace can access the connection. See [Workspace](https://docs.cloud.cdata.com/en/Workspaces.md) for more information.

To add a new connection, complete the following steps:

**Step 1**

On the **Sources** page, click **Add Connection**. This action displays the **Add Connection** dialog.

**Step 2**

Select a data source from the list in the dialog, or search for a connection by name.

![Add connection](https://mintcdn.com/cdata/K-T3q42UXeB2WirT/en/images/add_connection.png?fit=max\&auto=format\&n=K-T3q42UXeB2WirT\&q=85\&s=495bdc10f867abb212d3d2e2fd05924a)

After you select a data source, the **Add Connection** page for your data source appears.

**Step 1**

Configure the connection according to the instructions for the data source. Setup instructions appear in the **Documentation** tab in the right pane of the configuration page. They are also available in this documentation—look for your data source in the **Data Sources** section, or use the search bar to find it.

**Step 2**

Click **Save and Test**.

If the connection succeeds, a **Connection successfully saved** message appears. You can also view the data model of your connection in the right pane of the **Edit Connection** page, in the **Data Model** tab. When you return to the main **Sources** page, the new connection appears in the Sources list. You can modify or delete a connection at any time by clicking the edit or delete icons in the list.

If the connection fails, error messages appear under the fields with missing data. Some data sources require that you sign in directly to the data source’s website. If you did not sign in, an error message appears under the **Sign in** button.

In some situations, clearing your metadata cache for a connection can help fix loading or performance issues. To clear the cache, click **Clear Metadata** at the top of the **Edit Connection** page. A confirmation dialog warns that clearing the cached schema data for this connection can affect in-progress queries. Click **Continue** to clear the cache. A success banner confirms that the metadata cache has been cleared.

> [!NOTE]
>
> If you attempt to modify or delete a connection and Connect AI finds a cached job from the current connection, you are prompted with a warning. You can choose to cancel or continue with the changes. If you save the changes, Connect AI clears the cached data from the current connection.

If the connection fails, it is saved as a draft. A draft connection appears on the **Edit Connection** page and on the main **Sources** page as **Not Authenticated**. You can edit the connection later and finish the authentication process. \[!NOTE] Query users need to contact an administrator of the account to have a draft connection authenticated.

## Authentication Model

By default, all users on an account can access data from a data source through the same login credentials. For example, if you have a connection to Salesforce, all user accounts can access the data from the Salesforce account created for that Salesforce connection. Query permissions can be customized for each user to restrict available operations, but all users access the same data under these restrictions.

Certain data sources support the ability to force each user on an account to log in to a connection with their own login credentials. This feature ensures that users can only access the data from accounts that they need to access. Furthermore, when a connection is configured in this way, it only counts as a single connection slot toward your account maximum.

If a data source supports per-user authentication, an **Authentication Model** section appears under the **Authentication** section of the connection settings. Select either **Shared Authentication** or **Per-User Authentication**.

![Authentication Model](https://mintcdn.com/cdata/5oxDXGaSf7Hfm4y2/en/images/user_credentials_modal.png?fit=max\&auto=format\&n=5oxDXGaSf7Hfm4y2\&q=85\&s=4b89844a57175dbcac508b5971d10219)

To remove your own sign-in from a per-user authentication connection, click **Disconnect** on the connection page. This removes only your credentials. The sign-ins of other users on the connection are not affected.

If this feature is not available for a specific data source and you would like it, please contact our support team to request the feature.

> [!NOTE]
>
> The following restrictions apply to this feature:
>
> * Only administrator users can toggle a data source between shared authentication and per-user authentication, but users of all roles can log in to a per-user authentication connection with their own credentials.
> * Per-user authentication is not supported when using the [OData API](https://docs.cloud.cdata.com/en/API/OData-Dashboard.md). To connect a data source to the OData API, you must use shared authentication.
> * Caching is not permitted with per-user authentication (only shared authentication). See [Caching](https://docs.cloud.cdata.com/en/Caching.md) for details.
> * Key vaults are supported only with shared authentication, not per-user authentication. See [Keys](https://docs.cloud.cdata.com/en/Settings/Keys.md) for details.
> * Connect AI [service accounts](https://docs.cloud.cdata.com/en/Identities/Service-Accounts.md) cannot be assigned permissions on a per-user authentication connection, so they cannot sign in to one. To give a service account access to a data source, use a connection with shared authentication.

## Log Verbosity

On the **Advanced Settings** tab for each connection, there is a setting in the **Logging** section labeled **Verbosity**. This value determines how much information Connect AI includes in the logs for that data source on the [Logs](https://docs.cloud.cdata.com/en/Logs.md) page.

The value for verbosity can range from 1 to 5, where 1 includes the smallest amount of information and 5 includes the largest amount of information. By default, each data source logs at verbosity level 2.

> [!NOTE]
>
> Higher verbosity levels negatively impact query performance. For maximum performance, only increase the verbosity level for troubleshooting purposes.

### Protecting Sensitive Information in Logs

Verbosity levels 3 and up include sensitive information from the connection, as outlined below:

* Level 3 includes the bodies of requests and responses to requests.
* Level 4 includes SSL certificates.
* Level 5 includes extra low-level transfer data not included at the previous levels.

> [!NOTE]
>
> Regardless of the verbosity level, sensitive connection properties—including passwords—are always masked in connection strings and any requests/responses.

To ensure the security and safety of your sensitive information, only increase logging verbosity when necessary. When logging verbosity is set to 3 or higher, open and review log files before sharing them outside of your organization.

## Assign Permissions

When you create or edit a connection, the **Permissions** tab displays a list of available users and allows you to assign permissions to each one. Permissions are described in the list below:

* **Select:** Enables you to select rows from tables in a connection.
* **Insert:** Enables you to insert rows into tables of a connection.
* **Update:** Enables you to update rows in tables of a connection.
* **Delete:** Enables you to delete rows from tables in a connection.
* **Execute:** Enables users to execute stored procedures in a connection.

  ![Connection permissions](https://mintcdn.com/cdata/_rEUmb6X7-Bo62t-/en/images/connection_permissions.png?fit=max\&auto=format\&n=_rEUmb6X7-Bo62t-\&q=85\&s=af76e70be086cf76d406ff37d80ffe64)

You can toggle the permissions in four ways:

* Click an individual box in the table to toggle that permission for a single user.
* Click the box at the top of a table column to toggle that permission for every user.

## Configure Custom Reports

Some data sources support *custom reports*, which allow you to configure pre-defined reports that you can query as views within your connections. Each report has a unique set of required inputs, and you provide these inputs when you configure the report in your Connect AI account.

Custom reports are generally useful in two types of scenarios:

* For ad or analytics data sources, they can be used to show aggregated reports on performance data by allowing you to pre-define a set of metrics and dimensions.
* Other types of data sources let you pre-define parameters to create data reports. For example, an accounting API might allow you to create a general ledger report in QuickBooks.

### Create a Custom Report

If a data source supports custom reports, a **Custom Reports** tab appears on the connection settings page. Clicking this tab opens the custom reports interface, as shown below:

![Custom reports](https://mintcdn.com/cdata/_rEUmb6X7-Bo62t-/en/images/customReports_empty.png?fit=max\&auto=format\&n=_rEUmb6X7-Bo62t-\&q=85\&s=f375071e5bd3ada545ad2c0726c20079)

To add a custom report, follow these steps:

**Step 1**

Click **Add** above the report table. A **Configure Table** dialog appears with a list of the custom reports available for your chosen data source.

![Add custom report](https://mintcdn.com/cdata/_rEUmb6X7-Bo62t-/en/images/customReports_addReport.png?fit=max\&auto=format\&n=_rEUmb6X7-Bo62t-\&q=85\&s=a113e230acd4b63f435492eba97f93e8)

**Step 2**

In **Step 1: Select Report**, select the report you want to use and click **Next**.

**Step 3**

In **Step 2: Customize Report**, set the parameters for the report, and then click **Save Report** to save the custom report to your account.

After you save a custom report, it appears in the list of tables for your connection. You can delete custom reports and add new ones as needed.

> [!NOTE]
>
> Custom reports are not shared across multiple connections to the same data source. For example, if you have two separate connections to Adobe Analytics, both connections will have their own lists of custom reports.

### Use a Custom Report

You can query saved custom reports by passing the name of the custom report in the table field for your query. For example, if you have a custom report called *Customer Accounts List* on your QuickBooks Online connection, you could select all of its results with this query:

```sql wrap theme={null}
SELECT * FROM [QuickBooksOnline1].[QuickBooksOnline].[Customer Accounts List]
```

### Edit a Custom Report

To edit an existing custom report, follow these steps:

**Step 1**

In the report table, find the report you want to edit.

**Step 2**

Click the report name or type, or click the edit button.

**Step 3**

In **Edit Custom Report**, add or change report parameters.

**Step 4**

Click **Save Report**.

### Duplicate a Custom Report from an Existing Report

To duplicate an existing custom report, follow these steps:

**Step 1**

In the report table, find the report you want to duplicate.

![Duplicate custom report](https://mintcdn.com/cdata/_rEUmb6X7-Bo62t-/en/images/customReports_duplicate.png?fit=max\&auto=format\&n=_rEUmb6X7-Bo62t-\&q=85\&s=26fbd681320e5b573b2f08e06db1bbb6)

**Step 2**

Click the duplicate button. Connect AI creates a duplicate custom report for the data source with a new name.

**Step 3**

Edit the **Report Name**, if desired, and click **Save Report**.

### Delete a Custom Report

To delete an existing custom report, follow these steps:

**Step 1**

In the report table, find the report you want to delete.

**Step 2**

Click the delete button to the right of the report. Alternatively, you can select one or more reports on the **Custom Reports** tab and click **Delete**.

**Step 3**

Click **Delete** again in the dialog to confirm.

## AI Instructions

The **AI Instructions** tab on the **Add Connection** and **Edit Connection** pages holds instructions that tell AI agents how to query the connection. Connect AI provides these instructions to agents through the [getInstructions](https://docs.cloud.cdata.com/en/API/MCP.md#mcp-tools) MCP tool.

Every user who can use the connection, including users with the Query role, can view its AI instructions in read-only form, and their AI agents receive the instructions. Only administrators can edit or delete AI instructions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.