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

# Sharing

> Share workflows with others for collaboration

**Sharing is different from Duplicating**
Sharing a workflow gives another person (or everyone in your organization) access to your workflow. When shared, a change made by one person will affect all users who have access to the workflow. Duplication however, creates a copy of the workflow in either your current organization or another organization to which you have access.

## Sharing Permissions

Every entity within Pinkfish can be shared. Currently Workflows, Agents and Connections can be shared easily within an organization. In the future, we will enable data store, file store and vault to be shared.

Each share grants one of **two** levels. The lower level is named for what it lets you *do* with that resource, so it reads differently per resource — **Run** a workflow or connection, **Chat** with an agent — but it is the same underlying level in every case.

| **Resource**                   | **Permission** | ***What the User Can Do***                                      | ***What the User Cannot Do***            |
| :----------------------------- | :------------- | :-------------------------------------------------------------- | :--------------------------------------- |
| **Workflow**                   | **Manage**     | Edit, Delete, Run, Share workflow; manage triggers and API keys | —                                        |
|                                | **Run**        | Run workflow                                                    | Cannot edit, delete, or share            |
| **Agent**                      | **Manage**     | Configure, Use, Share agent                                     | —                                        |
|                                | **Chat**       | Use agent                                                       | Cannot configure, delete, or share       |
| **Connection**                 | **Manage**     | Edit, Delete, Run, Share connection                             | —                                        |
|                                | **Run**        | Use connection in workflows and agents                          | Cannot edit, delete, or share connection |
| **Data Store** *(Coming Soon)* | **Manage**     | Edit, Delete, Share data store collection                       | —                                        |
|                                | **View**       | Read from data store in workflows                               | Cannot write, edit, delete, or share     |
| **File Store** *(Coming Soon)* | **Manage**     | Edit, Delete, Share file store collection                       | —                                        |
|                                | **View**       | Read from file store in workflows                               | Cannot write, edit, delete, or share     |
| **Vault** *(Coming Soon)*      | **Manage**     | Edit, Delete, Share vault collection                            | —                                        |
|                                | **View**       | Read from vault in workflows                                    | Cannot edit, delete, or share            |

## Sharing your workflows

Simply navigate to the `Library` menu item on the left side of your Pinkfish dashboard. Once there click the `Share` icon from the Action column. Alternatively you can open the workflow you wish to share and click the options menu (⋮) in the upper right corner of that workflow and select `Share` from the dropdown menu.

Next a confirmation modal will appear allowing you to choose who you are intending to share this workflow with and their permission level. Either one or more individual people, or your entire organization.

<img src="https://mintcdn.com/pinkfishai/aXo4WZLzYGCBq4ta/images/examples/automation_sharing_modal.png?fit=max&auto=format&n=aXo4WZLzYGCBq4ta&q=85&s=ac37d15afc4838c8843c16cc3bd0360b" alt="Workflow Sharing Modal" width="500" data-path="images/examples/automation_sharing_modal.png" />

#### Sharing Options:

* Share with users individually in the **Add People** section. It will autocomplete based on email addresses for the organization.
* Share with an entire organization by selecting **General Access**
* Set permission levels for each user or organization
  * **Run**: Users can run the workflow, but cannot edit, delete, or share it
  * **Manage**: Users can run, edit, delete, and share the workflow, and manage its triggers and API keys
* Click `Share` to apply the settings, and the specified users will immediately gain access to the workflow at the specified permission level.

### Managing Shared Access

To modify or revoke sharing permissions, first navigate to the workflow's sharing settings. From there, you can adjust permission levels for individual users or the entire organization as needed. If you want to remove access completely simply click the dropdown menu arrow next to a user's permission, or the General Access dropdown arrow next to the organization. Finally, apply your changes to update the permissions using the `Share` button.

#### Individual vs. Organization permissions

* A user's effective permission is the **higher** of their individual grant and the organization-wide grant — neither one caps the other
* If a user has individual **Manage** access, they retain it even when organization-wide access is only **Run**
* The reverse is equally true: if organization-wide access is **Manage** and a user's individual grant is only **Run**, they still get **Manage**. Lowering one grant does not restrict a user who is entitled through the other — to reduce someone's access, lower *both*
* Organization-wide permissions apply to all current and future members of your organization

**Important notes about workflow sharing specific to permission levels:**

* Workflow can not be shared with users who exist outside of your organization.
* Deleting a workflow requires **Manage** permission — **Edit** access alone is not enough. When a user with Manage permission deletes a shared workflow, it is removed from the library of everyone who had access to it, because a shared workflow is one live copy rather than a copy per person.
* Since shared workflows are meant to be a collaboration tool, if multiple users who have access attempt to make changes to the workflow at the same time, a race condition will occur. In which the last user to save will overwrite the changes made by the others.

#### Access Control

Access to shared workflows follows these rules:

* Users must be explicitly granted access or be members of an organization with access
* Members of different organizations cannot access the workflow unless specifically granted access
* The access level (**Run** or **Manage**) determines what actions users can take with the shared workflow
* Only users with **Manage** permission can modify the workflow or its sharing settings

## Connection Sharing

Integration Connections can be shared using the `Connect` menu item on the left side of the Pinkfish dashboard. Once there click the `Share` icon from the Action column.

<Note>
  For **agents**, sharing a connection is only half the setup — you also pin it to the agent's tool so runners use it instead of their own. See [Tool Sharing and Identity](/tools/sharing-and-identity) for the full picture, including what happens when a connection is missing at run time.
</Note>

**Sharing Workflows without sharing associated connections:**

* If you share a workflow without sharing it's connections, the users or organization to whom you share the workflow will not have access to the connections used in the workflow.
* If you later decide to share the connections, you will need to do so separately for each user or organization.

**Sharing Workflows and sharing associated connections:**

* If you share a workflow and additionally share it's connections, the users or organization to whom you share the workflow will have access to the connections used in the workflow.
* If you later decide to unshare the connections, you will need to do so separately for each user or organization. Keep in mind though that doing this may cause the workflow to stop working as expected.

<img src="https://mintcdn.com/pinkfishai/aXo4WZLzYGCBq4ta/images/examples/connection_config_modal.png?fit=max&auto=format&n=aXo4WZLzYGCBq4ta&q=85&s=2c791aea7302201b52858b67610695b1" alt="Connection Sharing Modal" width="500" data-path="images/examples/connection_config_modal.png" />

**Important notes about connection sharing specific to workflow sharing:**

* Connections are shared with the same permission level options as workflows and can be shared with users, or entire organizations.
* If a user with whom a workflow is shared decides to use their personal (non-shared) iteration of a connection, this change will propagate to all users who have shared access to the workflow.
