# Recovering teams

## Overview

When restoring repositories, one type of metadata that can be restored is **teams**. **GitProtect** ensures that **teams** and their associated users are reinstated.

{% hint style="warning" %}
This process may include sending invitations for users to rejoin the organization.
{% endhint %}

Before starting the restoration process, a prompt will inform you of this action—accepting the prompt will restore **teams** and send invitations as needed. Canceling the prompt will exclude **teams** from the restoration process.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-2ef6de1bacfa28cdbc36d611127b6d2ef5a16f6c%2Fimage%20(389).png?alt=media" alt=""><figcaption></figcaption></figure>

***

## Limitations

The maximum number of external collaborators that can be restored for a single repository in one operation is limited to **50**. This restriction is due to **GitHub** **API** limitations, which define how many collaborators can be processed in a single batch. This constraint is independent of **GitProtect** and cannot be bypassed by the backup solution.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-9040d14848d9571b9a9c9bafcae2c6aa0eaaf233%2Fimage%20(390).png?alt=media" alt=""><figcaption></figcaption></figure>

***

## Useful links and items

{% embed url="<https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#add-a-repository-collaborator>" %}
