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

# Organization management

> Managing your organization, its members, and repositories

In Diversion, an organization is a group of users who share repositories, making it easier to collaborate and manage projects. You can find your organizations under `Your organizations` in the user menu.

<img src="https://mintcdn.com/diversion-2/6oBIKJXn8qSe89kX/images/org-mgmt-your-organizations-menu-item.png?fit=max&auto=format&n=6oBIKJXn8qSe89kX&q=85&s=beaf2dc4dc03e281f5d6bbf0ae940406" alt="Profile button" width="247" height="621" data-path="images/org-mgmt-your-organizations-menu-item.png" />

## Creating an organization

You can only create one organization per account, but you can be a member of many organizations.

### Creating your first organization

**If you don't own or belong to any organization:**

1. Click on your avatar in the top navigation and select `Create organization`.

   <img src="https://mintcdn.com/diversion-2/SKdrNZ5qs7bJ42S4/images/click-create-organization.png?fit=max&auto=format&n=SKdrNZ5qs7bJ42S4&q=85&s=99499802b377d719b633287ecabe24ac" alt="Create org from profile" width="251" height="623" data-path="images/click-create-organization.png" />

2. Choose a name for your organization and click `Create organization`.

   <img src="https://mintcdn.com/diversion-2/SKdrNZ5qs7bJ42S4/images/create-organization-page.png?fit=max&auto=format&n=SKdrNZ5qs7bJ42S4&q=85&s=f2201e7a83294ed244a64d0a791d94ed" alt="Create organization page" width="910" height="887" data-path="images/create-organization-page.png" />

**If you already belong to one or more organizations:**

Create the new organization from the New Repository dialog: click the `Parent organization` dropdown and select `+ Create New Organization`, then enter your organization name. See [Creating an organization while creating a repository](#creating-an-organization-while-creating-a-repository) below.

### Creating an organization while creating a repository

Alternatively, you can create an organization while creating a new repository:

1. When creating a new repository, click the `Parent organization` dropdown and select `+ Create New Organization`.
2. Enter your organization name to create both the repository and organization simultaneously.

<img src="https://mintcdn.com/diversion-2/Ni8GQ373CobDNQFr/images/new-repo-new-organization.png?fit=max&auto=format&n=Ni8GQ373CobDNQFr&q=85&s=18fd376cadcc644b913d18dcb13a1643" alt="Create org from repo" width="666" height="353" data-path="images/new-repo-new-organization.png" />

**Note:** As an organization owner, you are responsible for all billing, including storage usage and organization member seats. When you upgrade to a paid tier, an organization may be created automatically for you depending on your tier (Indie/Educational/Professional).

## Managing an organization

Each organization has an owner. The owner can invite other users to join the organization.
When you add a user to your organization, they won't have access to all of your repositories and you can still manage access on a per-repo basis.

When inviting a user, the owner can decide if the user should have admin privileges. Admins can also manage users, same as the owner.

The difference between the owner and an admin is that billing for the organization is managed through the owner's Diversion account.

<img src="https://mintcdn.com/diversion-2/tNxAwm8NrThaCp35/images/org-mgmt-invite-user.png?fit=max&auto=format&n=tNxAwm8NrThaCp35&q=85&s=34e3e54b0fd33ab38c97878c6b80cc1a" alt="Invite user modal window" width="540" height="735" data-path="images/org-mgmt-invite-user.png" />

If you send an invite to someone who doesn't have a Diversion account, they will be prompted to create one.

### Removing users

The owner or admins can also remove users from the organization. When removing a user, you'll be prompted with the list of repositories the user can access. These are all of the repositories that the user will no longer have access to.

This means that the Diversion agent will no longer sync these repositories with the user's workspace. This also means that the user will keep stale copies of the repositories that were previously cloned locally.

<img src="https://mintcdn.com/diversion-2/tNxAwm8NrThaCp35/images/org-mgmt-remove-user.png?fit=max&auto=format&n=tNxAwm8NrThaCp35&q=85&s=15df9426d37a20c33e7d55bc5c3e6883" alt="Remove user confirmation modal window" width="540" height="287" data-path="images/org-mgmt-remove-user.png" />

Removing a user that owns repositories is currently not supported through the app. You'll have to contact support to transfer ownership of those repositories before removing the user.

<img src="https://mintcdn.com/diversion-2/tNxAwm8NrThaCp35/images/org-mgmt-unable-to-remove-user.png?fit=max&auto=format&n=tNxAwm8NrThaCp35&q=85&s=dee1837d21c1308efc35b55e448c5ddb" alt="Unable to remove user who owns repos" width="543" height="515" data-path="images/org-mgmt-unable-to-remove-user.png" />

## Working in an organization

Every repository belongs to an organization. When you create a new repository, you set its `Parent organization` in the create dialog: if you belong to a single organization it is used automatically, and if you belong to more than one you choose which one to use. If you don't belong to any organization yet, a personal organization is created for you automatically and the repository is placed in it. This ensures that all repositories are properly organized and accessible to the relevant team members.

Other than that, working as part of an organization is exactly the same as working as an individual user.

## Attaching a repository to an organization

If you own a repository that isn't part of any organization, you can attach it to an organization you own at any time, directly from the dashboard, without contacting support. (New repositories are always created within an organization, so this applies to older repositories that predate that behavior.)

The `Attach to Organization` action is available when all of the following are true:

* You are the **owner** of the repository.
* The repository is **not** already part of an organization.

<Steps>
  <Step title="Open the repository actions menu">
    On your dashboard, open the **Remote Repositories** tab and look under **Personal** -- repositories that aren't part of an organization appear there, not under **Local Workspaces**. Find the repository's row, click its **...** menu, and select `Attach to Organization`.

    <img src="https://mintcdn.com/diversion-2/g_jyumy-qEjJFz_7/images/org-mgmt-attach-to-org-menu-item.png?fit=max&auto=format&n=g_jyumy-qEjJFz_7&q=85&s=e34ecc50ed0fbae58425b37e3be7de17" alt="Attach to Organization menu item on a repository row" width="1860" height="604" data-path="images/org-mgmt-attach-to-org-menu-item.png" />
  </Step>

  <Step title="Select the organization and review who will be added">
    In the `Attach Repository to Organization` dialog, choose the destination organization from the `Select Organization` dropdown. Only organizations you own are listed.

    The dialog then previews which repository collaborators (and pending invitees) are not yet members of the selected organization. Attaching the repository will add them as members of the organization, counting toward its user quota. If everyone is already a member, the dialog confirms that no users will be added.

    <img src="https://mintcdn.com/diversion-2/v12h65qwj6XoZlO3/images/org-mgmt-attach-to-org-dialog.png?fit=max&auto=format&n=v12h65qwj6XoZlO3&q=85&s=0f77e5f2c447e4ec2aba1fd37d162981" alt="Attach Repository to Organization dialog with the organization selected and a preview of users to be added" width="1064" height="840" data-path="images/org-mgmt-attach-to-org-dialog.png" />
  </Step>

  <Step title="Confirm the attachment">
    Click `Attach to Organization` (or `Attach and Add N Users` when collaborators will be added) to complete the action. The repository, along with its storage usage, now belongs to the organization.
  </Step>
</Steps>

<Note>
  You must be the owner of an organization to attach a repository to it. If you don't own any organization, [create one first](#creating-an-organization).
</Note>

## Organization repository management

Organization owners and admins can view and manage all repositories associated with the organization, including repositories they are not personally collaborating on. This includes managing collaborators and transferring ownership.

### Viewing organization repositories

<Steps>
  <Step title="Navigate to your organization">
    Click on your avatar in the top navigation and select `Your organizations`. The organization whose settings you see is controlled by the organization selector in the top-left of the global bar; use it to pick the organization you want.

    <img src="https://mintcdn.com/diversion-2/6oBIKJXn8qSe89kX/images/org-mgmt-your-organizations-menu-item.png?fit=max&auto=format&n=6oBIKJXn8qSe89kX&q=85&s=beaf2dc4dc03e281f5d6bbf0ae940406" alt="Profile button" width="247" height="621" data-path="images/org-mgmt-your-organizations-menu-item.png" />
  </Step>

  <Step title="Open the Repositories page">
    In the left sidebar, click `Repositories` to view all repositories in the organization.

    <img src="https://mintcdn.com/diversion-2/cRpeD_gsb0j32D_2/images/org-mgmt-org-repos-sidebar.png?fit=max&auto=format&n=cRpeD_gsb0j32D_2&q=85&s=48889f3e925f8f05a19b82e0985f6f46" alt="Organization repositories sidebar navigation" width="905" height="710" data-path="images/org-mgmt-org-repos-sidebar.png" />
  </Step>

  <Step title="Browse organization repositories">
    You will see a table listing all repositories in the organization, including their name, creation date, size, auto-update status, and collaborators. As an organization owner or admin, you can see repositories that you are not personally collaborating on.

    <img src="https://mintcdn.com/diversion-2/cRpeD_gsb0j32D_2/images/org-mgmt-org-repos-table.png?fit=max&auto=format&n=cRpeD_gsb0j32D_2&q=85&s=f38672078dc650eb60870384a9455041" alt="Organization repositories table" width="1028" height="684" data-path="images/org-mgmt-org-repos-table.png" />
  </Step>
</Steps>

If you belong to multiple organizations, use the organization selector in the top-left of the global bar to switch between organizations.

### Managing repository collaborators

Organization owners and admins can manage collaborators for any repository in the organization, even if they are not a collaborator on that repository themselves.

<Steps>
  <Step title="Navigate to the Repositories page">
    Go to your organization's Repositories page as described above.
  </Step>

  <Step title="Open the repository actions menu">
    Find the desired repository in the table and click the menu icon on the right side.

    <img src="https://mintcdn.com/diversion-2/cRpeD_gsb0j32D_2/images/org-mgmt-repo-actions-menu.png?fit=max&auto=format&n=cRpeD_gsb0j32D_2&q=85&s=c48fafc43e33e0e01324fbc1ec699568" alt="Repository actions menu" width="1046" height="248" data-path="images/org-mgmt-repo-actions-menu.png" />
  </Step>

  <Step title="Select 'Manage Collaborators'">
    Click `Manage Collaborators` to open the collaborators dialog.

    <img src="https://mintcdn.com/diversion-2/cRpeD_gsb0j32D_2/images/org-mgmt-manage-collaborators-dialog.png?fit=max&auto=format&n=cRpeD_gsb0j32D_2&q=85&s=d673c69ac6660a7f621343c4fb11c4f8" alt="Manage collaborators dialog" width="1046" height="248" data-path="images/org-mgmt-manage-collaborators-dialog.png" />
  </Step>

  <Step title="Add or remove collaborators">
    From the collaborators dialog, you can:

    * View all current collaborators and their permission levels
    * Invite new collaborators by entering their email address and selecting an access level
    * Change a collaborator's permission level
    * Remove a collaborator from the repository
    * Add yourself to the repository by entering your own email address — even if you're not currently a collaborator on that repo
  </Step>
</Steps>

### Transferring repository ownership

You can transfer repository ownership to another member of the organization. The user performing the transfer must be both the repository owner and an organization admin or owner.

<Steps>
  <Step title="Navigate to the Repositories page">
    Go to the `Repositories` page in your organization page (accessible from the left sidebar).

    <img src="https://mintcdn.com/diversion-2/cRpeD_gsb0j32D_2/images/org-mgmt-repositories-page.png?fit=max&auto=format&n=cRpeD_gsb0j32D_2&q=85&s=b00aa445bdce7cbba203455a7c97c7c8" alt="Repositories page" width="210" height="708" data-path="images/org-mgmt-repositories-page.png" />
  </Step>

  <Step title="Open the transfer dialog">
    Find the desired repository. Click on the menu icon on the right side and select `Transfer ownership`.

    <img src="https://mintcdn.com/diversion-2/cRpeD_gsb0j32D_2/images/org-mgmt-transfer-ownership.png?fit=max&auto=format&n=cRpeD_gsb0j32D_2&q=85&s=aff8c61553becc63d01568dd746a7890" alt="Transfer ownership" width="1046" height="248" data-path="images/org-mgmt-transfer-ownership.png" />
  </Step>

  <Step title="Select the new owner">
    Choose the member you wish to transfer ownership to from the dropdown and confirm the transfer.
  </Step>
</Steps>

<Warning>
  This action cannot be undone. The new owner will have full control over the repository, and you will lose ownership privileges.
</Warning>

### Transferring a repository to another organization

You can transfer a repository from your organization to another organization. Only the **owner of the source organization** can initiate the transfer. The destination organization owner must approve the request before the repository moves.

If you are a repository owner but not the source organization's owner, ask your organization owner to initiate the transfer on your behalf.

<Steps>
  <Step title="Open the transfer dialog">
    Open the source organization's `Repositories` page. If you belong to multiple organizations, use the organization selector in the top-left of the global bar to switch to the source organization first. Find the desired repository, click the menu icon on the right side, and select `Transfer Organization`.

    <img style={{ width: '113px', height: '92px', borderRadius: '0.5rem', border: '1px solid #555', boxShadow: '0 0 0.5rem #ccc' }} src="https://mintcdn.com/diversion-2/eR_Fdwc4Fdm58sMR/images/repo-transfer-cross-org/org-mgmt-transfer-to-org-menu-item.png?fit=max&auto=format&n=eR_Fdwc4Fdm58sMR&q=85&s=e7f13849bd4909c299420175d80f9708" alt="Transfer Organization menu item" width="225" height="183" data-path="images/repo-transfer-cross-org/org-mgmt-transfer-to-org-menu-item.png" />
  </Step>

  <Step title="Enter the destination organization owner's email">
    Type the email address of the destination organization's owner and click `Send Request`. A transfer request is sent to that email and appears on the destination owner's dashboard.

    <img style={{ width: '362px', height: '251px', borderRadius: '0.5rem', border: '1px solid #555', boxShadow: '0 0 0.5rem #ccc' }} src="https://mintcdn.com/diversion-2/eR_Fdwc4Fdm58sMR/images/repo-transfer-cross-org/org-mgmt-transfer-to-org-dialog.png?fit=max&auto=format&n=eR_Fdwc4Fdm58sMR&q=85&s=1959498cce23f0ec10c0fed974bb39e8" alt="Transfer request dialog" width="724" height="502" data-path="images/repo-transfer-cross-org/org-mgmt-transfer-to-org-dialog.png" />
  </Step>

  <Step title="Wait for approval">
    The destination organization owner has **14 days** to accept or decline the request. You will be notified by email when they respond. If the request is not approved within 14 days, it expires automatically and the repository remains in your organization.

    <img style={{ width: '364px', height: '260px', borderRadius: '0.5rem', border: '1px solid #555', boxShadow: '0 0 0.5rem #ccc' }} src="https://mintcdn.com/diversion-2/eR_Fdwc4Fdm58sMR/images/repo-transfer-cross-org/org-mgmt-transfer-to-org-request-sent.png?fit=max&auto=format&n=eR_Fdwc4Fdm58sMR&q=85&s=10a0f04baf18d25d9f265efbf6c09d3c" alt="Transfer request sent confirmation" width="727" height="520" data-path="images/repo-transfer-cross-org/org-mgmt-transfer-to-org-request-sent.png" />
  </Step>
</Steps>

<Warning>
  This action is irreversible. Once accepted, the repository is permanently moved out of your organization. All repository members who are not already members of the destination organization will be added to it — counting toward the destination organization's user quota — and the repository's storage will count toward the destination organization's storage quota.
</Warning>

<Note>
  If you need to remove a repository from your organization but there is no destination organization to send it to — for example, the repository's owner is no longer active and you simply want the repository gone — [contact support](mailto:support@diversion.dev).
</Note>

#### Reviewing an incoming transfer request

If another organization's owner sends you a transfer request, you will be notified by email and an `Incoming repository transfer` card will appear on your dashboard.

<Steps>
  <Step title="Open the transfer request from the dashboard">
    Find the `Transfer of [repository name]` card in the pending invites section of your dashboard and click `Review...`.

    <img style={{ width: '600px', height: '100px', borderRadius: '0.5rem', border: '1px solid #555', boxShadow: '0 0 0.5rem #ccc' }} src="https://mintcdn.com/diversion-2/eR_Fdwc4Fdm58sMR/images/repo-transfer-cross-org/org-mgmt-transfer-to-org-card.png?fit=max&auto=format&n=eR_Fdwc4Fdm58sMR&q=85&s=db0eb7a1d97ac8161b50cde371c12270" alt="Incoming transfer request card on the dashboard" width="1452" height="247" data-path="images/repo-transfer-cross-org/org-mgmt-transfer-to-org-card.png" />
  </Step>

  <Step title="Review the transfer details">
    The review dialog shows the source organization, the repository's storage size, the members that will be added to your organization, and when the request expires.

    <img style={{ width: '362px', height: '382px', borderRadius: '0.5rem', border: '1px solid #555', boxShadow: '0 0 0.5rem #ccc' }} src="https://mintcdn.com/diversion-2/eR_Fdwc4Fdm58sMR/images/repo-transfer-cross-org/org-mgmt-transfer-to-org-review.png?fit=max&auto=format&n=eR_Fdwc4Fdm58sMR&q=85&s=bae662648b65f7e919b327af066a087e" alt="Review repository transfer dialog" width="724" height="763" data-path="images/repo-transfer-cross-org/org-mgmt-transfer-to-org-review.png" />
  </Step>

  <Step title="Accept or decline">
    Click `Accept Transfer` to move the repository into your organization, or `Decline` to reject the request. The initiator is notified by email either way.
  </Step>
</Steps>

<Note>
  Transfer requests expire after 14 days. Expired requests cannot be accepted — the source organization owner must send a new request.
</Note>

## Leaving an organization

Only non-owner members can leave an organization. Switch to the organization you wish to leave using the organization selector in the top-left of the global bar, then open its settings and click "Leave organization".

**Note:** Leaving an organization will result in losing access to all repositories associated with it. You can always be invited back to the organization later.

<img src="https://mintcdn.com/diversion-2/6oBIKJXn8qSe89kX/images/org-mgmt-leave-org-access-warning.png?fit=max&auto=format&n=6oBIKJXn8qSe89kX&q=85&s=f06de99243104bb010db572220394b2a" alt="Access to org repos will be lost after leaving an org" width="667" height="521" data-path="images/org-mgmt-leave-org-access-warning.png" />

If you own one or more repositories that are associated with the organization, you won't be able to leave the organization. You must either [transfer the repository ownership](#transferring-repository-ownership) to another member of the organization or delete the repositories first.

## Organization deletion

Deleting an organization is not possible. If you no longer need an organization, you can remove all members and repositories from it.

## FAQs

### What happens to my repositories if I'm a member of multiple organizations?

Every repository is created within an organization. If you belong to more than one organization, you choose its `Parent organization` in the create dialog; if you belong to a single organization, that one is used; and if you don't belong to any, a personal organization is created for you automatically. A repository is therefore never left unassigned at creation time. Older repositories that aren't part of any organization can be [attached to one](#attaching-a-repository-to-an-organization) you own.

### How do I transfer organization ownership to another user?

Ownership transfer is currently handled by our support team. If you're an organization owner and want to transfer ownership:

1. Ensure the new owner is already a member of your organization. If not, invite them first as explained above.
2. Email our support team with your request, including the new owner's email address, and our team will complete the transfer.
3. The new owner should select their desired tier, storage capacity, and seats, then add a payment method to avoid subscription breach [system messages](/system-messages).
4. Once the new owner has set up their subscription, cancel your old subscription from **Plan & Billing** to avoid double payment.

### How do I become the owner of an organization I am a member of?

Ask your organization owner to contact our support team and request the ownership transfer to your account. The owner should follow the steps outlined in the question above.

### Why am I receiving system messages about exceeding my user limit?

If you're seeing [system messages](/system-messages) like this:

<img src="https://mintcdn.com/diversion-2/LPmIgUcQRdTQ4EIi/images/Notifications/user-plan-owner-notification.png?fit=max&auto=format&n=LPmIgUcQRdTQ4EIi&q=85&s=26aa0e197da595cc8290d0d3e1c52599" alt="User Plan Owner Notification" width="898" height="36" data-path="images/Notifications/user-plan-owner-notification.png" />

This means your organization has more members than your current plan allows. To resolve this, you have two options:

1. **Upgrade your plan** - Purchase additional user seats to accommodate your current team size.
2. **Remove users from your organization** - See the [removing users](#removing-users) section above for step-by-step instructions.

If you're seeing [system messages](/system-messages) like this:

<img src="https://mintcdn.com/diversion-2/LPmIgUcQRdTQ4EIi/images/Notifications/trial-ended-notification.png?fit=max&auto=format&n=LPmIgUcQRdTQ4EIi&q=85&s=ea089a206a678daee075a6e505467ddd" alt="Trial Ended Notification" width="694" height="42" data-path="images/Notifications/trial-ended-notification.png" />

This means you haven't selected a plan yet. To resolve this:

**Select a plan** - See [choosing your plan](/choosing-your-plan) for guidance, or visit our [pricing page](https://www.diversion.dev/pricing) to view available options.

### How do I move repositories out of my organization?

As the organization's owner, you can transfer any repository in your organization — even ones you don't personally own or collaborate on — using the [Transfer Organization](#transferring-a-repository-to-another-organization) action. Send each request to the email of the owner of the destination organization.

### How do I move my repositories from another organization to my own?

Ask the current organization's owner to use the [Transfer Organization](#transferring-a-repository-to-another-organization) action on the repository and submit the request to your email address. Once you accept the request from your dashboard, the repository moves into your organization.
