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

# Demo Explain How to Manage Collaborators

> Managing collaborators, invitations, repository transfers, and role based access control within a GitHub organization, including best practices and permission levels.

In this lesson you'll learn how to manage collaborators and repository access within a GitHub organization. We cover where to review pending invitations, how users accept invites, transferring repositories into an organization, and assigning repository roles (Read, Triage, Write, Maintain, Admin).

## Review pending invitations and members

From your organization page, open the People tab to inspect pending invitations and current members. This view shows outstanding invites and active organization members.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-organization-people-invitations.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=eb7fdbec48fa931b6186633aa32549b1" alt="This image shows a GitHub organization’s &#x22;People&#x22; tab, specifically the &#x22;Invitations&#x22; section, listing two pending invitations for members &#x22;Siddharth&#x22; and &#x22;Alice&#x22; with invitation details." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-organization-people-invitations.jpg" />
</Frame>

## How invitations are accepted

Invited users will receive an invitation they can accept or decline from their GitHub account. The invitation may include metadata (for example, whether two-factor authentication is enabled and the invitation source). GitHub also surfaces controls to manage or limit future invitations within the invitation page and the user’s account settings.

<Callout icon="lightbulb" color="#1CB2FE">
  Invitations show security metadata such as two-factor authentication status. If your organization requires 2FA, an invitee must enable it before joining. See GitHub’s 2FA documentation for setup steps.
</Callout>

For example, Alice receives an invitation to join the PixelCraft organization and can accept or decline from her account.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/pixelcraft-studio-kk-github-invitation.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=903fdb4017100010b8e9974870512515" alt="The image shows an invitation to join the &#x22;Pixelcraft-Studio-kk&#x22; organization on GitHub, with options to accept or decline the invitation." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/pixelcraft-studio-kk-github-invitation.jpg" />
</Frame>

After Alice accepts the invitation, refresh the People view in the organization to confirm she appears as a member and to view any remaining pending invitations (for example, an invitation still pending for Siddharth).

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-page-pixelcraft-studio-repo.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=d3f3a9928b1560dd29c0dfb397828fde" alt="The image shows a GitHub page for an organization named &#x22;Pixelcraft-Studio-kk,&#x22; inviting users to create a new repository. It features an icon and some user avatars." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-page-pixelcraft-studio-repo.jpg" />
</Frame>

## Creating or transferring repositories to an organization

If your organization has no repositories yet, you can either create a new repository inside the organization or transfer repositories from a personal account.

* Create a new repo under the organization.
* Transfer one or more repositories from a personal account into the organization. Transfers preserve the commit history, issues, pull requests, and metadata.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-settings-organizations-work-options.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=cef96374d759c2689685bb34f2ad429a" alt="The image shows a GitHub settings page for organizations, displaying options for creating or moving work to an organization, with various settings like &#x22;Organizations&#x22; highlighted." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-settings-organizations-work-options.jpg" />
</Frame>

When moving work, GitHub lists repositories and projects you can select. Choose the items to transfer and confirm; transfers may take a few minutes depending on repository size.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-interface-moving-work-repositories.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=bce282ac85b02aa35a24eb45cc43568c" alt="The image shows a GitHub interface for moving work into an organization, listing repositories like &#x22;block-buster,&#x22; &#x22;bb-2,&#x22; and &#x22;flux2,&#x22; with options to select them." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-interface-moving-work-repositories.jpg" />
</Frame>

<Callout icon="lightbulb" color="#1CB2FE">
  Repository transfers retain issues, pull requests, and commit history. If you plan to consolidate many repos, consider communicating with contributors about timing and access changes.
</Callout>

## Managing repository access and collaborator roles

Inside each repository, go to Settings → Collaborators & teams (or Manage access) to add users directly or grant access through organization teams. Direct access assignments let you select a role for each user, typically: Read, Triage, Write, Maintain, or Admin. Enterprise accounts can also create custom roles.

Below is an example repository page showing users who have access to the "block-buster" repository. Users with Write access can edit files directly in the GitHub web UI.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-repo-pixelcraft-block-buster.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=23e10a4f4d1029ed6ac02d333144009e" alt="The image shows a GitHub repository page for &#x22;Pixelcraft-Studio-kk,&#x22; featuring a public template repository named &#x22;block-buster&#x22; for a JavaScript game. The user's profile dropdown is open, revealing options like status and repository management." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-repo-pixelcraft-block-buster.jpg" />
</Frame>

Example: a collaborator with Write access can edit `index.html` directly in the repository. Below is a sample HTML file demonstrating an editable front-end file:

```html theme={null}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Block Buster - Enhanced Edition</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <!-- Welcome Screen -->
        <div class="screen active welcome-screen" id="welcomeScreen">
            <div class="header">
                <h1 class="title">🎮 BLOCK BUSTER! </h1>
                <p class="subtitle">Enhanced Edition with Random Levels & Power-ups</p>
            </div>
            <div class="game-screen">
                <div class="welcome-content">
                    <div class="game-info">
                        <div class="info-row">
                            <div class="info-label">🕹️ GAME TYPE</div>
                            <span class="info-value">Dynamic Brick Breaker</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">🎮 LEVEL</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
```

When a user has Read access, they can clone and view the repository and comment on issues and pull requests, but they cannot push changes. Attempting to edit a file in the web UI will prompt a Read user to fork the repository and create a branch in the fork. The normal contribution workflow for Read users becomes: fork → make changes → open a pull request against the organization repository.

### Quick reference: roles and capabilities

| Role     | Primary capabilities                                                                      | Typical use case                                         |
| -------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Read     | View, clone, comment on issues/PRs; cannot push.                                          | External contributors or reviewers.                      |
| Triage   | Manage issues and PRs (label, assign, close) but not push code.                           | Community maintainers and triage teams.                  |
| Write    | Push code, create branches, edit in web UI, and (subject to branch protection) merge PRs. | Active contributors and feature owners.                  |
| Maintain | Manage repository content, moderate issues/PRs, and perform maintenance tasks.            | Repo maintainers who do not need full org admin rights.  |
| Admin    | Full repository control, including settings, collaborators, and deletion.                 | Trusted admins who manage repo configuration and access. |

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/UUYFvHM79dCKO7ER/images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-repository-settings-roles-permissions.jpg?fit=max&auto=format&n=UUYFvHM79dCKO7ER&q=85&s=a0c4a6d1d384f3209e2ae84b685a7aff" alt="The image shows a GitHub repository settings page for managing access, where different users are listed with specified roles and permissions. There is an emphasis on role selection, with options to read, triage, write, or add custom roles via GitHub Enterprise." width="1920" height="1080" data-path="images/GitHub-Foundations-Certification/GitHub-Administration/Demo-Explain-How-to-Manage-Collaborators/github-repository-settings-roles-permissions.jpg" />
</Frame>

<Callout icon="warning" color="#FF6B6B">
  Grant Admin or Maintain roles only to trusted users. Admin access allows repository settings changes, including collaborator management and potentially destructive actions (like deletion).
</Callout>

## Best practices

* Assign the least privilege required: prefer Read or Triage where possible and escalate to Write/Maintain only when needed.
* Use teams to manage permissions at scale — assign access to teams instead of individual users when multiple repos or many users are involved.
* Require 2FA and consider organizational policies to protect sensitive repositories.
* Communicate transfers and permission changes with contributors to avoid confusion.

## Links and references

* [Managing repository access on GitHub](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-repository-access-for-your-repository)
* [Transfer a repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository)
* [Converting a personal account to an organization](https://docs.github.com/en/organizations/creating-an-organization-from-a-personal-account/converting-a-personal-account-to-an-organization)
* [About two-factor authentication (2FA)](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/github-foundation-certification/module/e1fb240f-a163-45b7-ae70-61c1e162023f/lesson/c9b71926-82dc-48cd-92a0-d5663a3cdd49" />
</CardGroup>
