# Create the Connection contract in output

In output, the **Connection Contract** defines how the data consumer connects to Data Mover to collect the files.

The following entities **must already exist** in Data Mover:

* **Actor** → **VFS and virtual path**: the path where files are stored in Data Mover. This is the path where the data consumer will collect the files.
* **Actor** → **User**: the user of the data consumer having permissions to access Data Mover and collect the files.

To create the Connection Contract, follow these steps:

1. Navigate to the **Actors** section and select the Actor.
2. Access the **Connection Contracts** tab and click the **New** button.
3. Enter a name and description for easy reference.
4. Click the **Select** button and in the window that appears assign the Connection Contract to a specific **server**.&#x20;

<figure><img src="/files/HerFRWOfRqOZPHqOuleM" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Once a server is assigned to a Connection contract - and therefore linked to an Actor - it is removed from the **Select server** window. This is because each server can be associated with **only one** Connection Contract.&#x20;
{% endhint %}

5. Click **Confirm** to close the **Select server** window.&#x20;
6. In the **VFS and Users/Groups** section, click the **Add** button.&#x20;
7. In the **New User/Group Association** window, select **direct assignment**, select the VFS and the VFS path - which must already exist - where the data consumer will collect the files.&#x20;
8. Select the external **User** - which must already exist - that will access Data Mover to collect the files and click the **ADD** button.
9. Click **Confirm** and then **Save** to close the page.

<figure><img src="/files/YApfxJT0EBUdLkD1b1h9" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-mover-1.21/contracts/business-scenarios/create-connection-mediation-and-connection-contracts/create-the-connection-contract-in-output.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
