> ## 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 Create and manage teams

> Walkthrough to create parent and nested child teams in a GitHub organization, grant repository access, and demonstrate inherited permissions and recommended team management practices

In this lesson you'll create a parent team and a nested child team in the Game Dev Studio organization, then grant repository access to demonstrate how team membership and repository permissions are managed. This walkthrough assumes you are signed in as an organization admin.

Prerequisites

* Admin access to the GitHub organization.
* A target repository (in this example, `app-backend`) already created and accessible.

Steps overview

1. Create a parent team (PC Devs).
2. Grant the team access to a repository.
3. Create a child team (Windows Client) under the parent.
4. Observe permission inheritance and manage members.

1) Create the parent team (PC Devs)

Create a new team called "PC Devs" in the organization. Leave the identity provider group association at the default settings if you don’t need to integrate an IdP group right now.

![A screenshot of a GitHub organization team page for "PC-Devs" in dark mode, showing the team's avatar and an "About" section. The right side lists one member with a search box and a green "Add a member" button.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Governance-and-Roles/Demo-Create-and-manage-teams/pc-devs-github-team-add-member.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=fa5f62be1764a5c96985c15693fa3a7c)

2. Grant repository access to the team

A newly created team has no repository access by default. To give the PC Devs team access to a repository (for example, `app-backend`) open that repository, navigate to Settings → Collaborators and teams, then add the team and select the desired permission level (Read, Write, or Admin). In this demo we grant the PC Devs team Write access and confirm by clicking Add selection.

![A screenshot of a GitHub repository's Settings → Collaborators and teams page in dark mode, showing the repository is private and a "PC-Devs" team has been granted write access. The page displays access sections (Base role, Direct access, Organization access) and controls to add people or teams.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Governance-and-Roles/Demo-Create-and-manage-teams/github-settings-collaborators-pc-devs-write.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=5db2fe5540a1d3f2514d55f0bbafcb2e)

After adding the team, it will appear in the repository access list. This makes it easier to audit which teams have access to each repo.

3. Create a nested (child) team under PC Devs

Back on the organization teams page, create a child team and set the parent to PC Devs. In this example the child team is named "Windows Client."

![A GitHub organization page (game-devstudio) showing the "Create new team" form with the Team name filled as "Windows-Client" and the Parent team dropdown set to "PC-Devs." The screenshot is in dark mode inside a browser window with tabs visible.](https://mintcdn.com/kodekloud-c4ac6d9a/Ae2SeWV4btujbkSt/images/GitHub-Administration-Certification/Governance-and-Roles/Demo-Create-and-manage-teams/github-create-team-windowsclient-pcdevs-dark.jpg?fit=max\&auto=format\&n=Ae2SeWV4btujbkSt\&q=85\&s=0f9354f1edc0d72f2f850e666d453017)

Because the Windows Client team is nested under PC Devs, it inherits the parent team's repository permissions. In this demo, since PC Devs has Write access to `app-backend`, Windows Client also has Write access by inheritance.

Child teams inherit repository access from their parent teams. Permissions are additive: a child team receives at least the access level the parent grants and can be given additional repository permissions, but it does not reduce the parent's access.

Be cautious when granting elevated permissions (Write or Admin) at a parent-team level — those permissions propagate to all child teams. Review team membership before applying wide-scoped access.

Recommended practices

* Grant repository permissions at the appropriate level: prefer granting access at a parent team when many subteams need the same base permission, but use child teams to restrict or add permissions for specific groups.
* Keep team membership tight and review maintainers regularly to avoid privilege escalation.
* Use GitHub’s audit logs and the repository access pages to confirm who has access.

Quick reference

| Action | Where to do it | Notes |
| - | - | - |
| Create team | Organization → Teams → New team | Choose a clear naming convention (e.g., `PC-Devs`, `Windows-Client`) |
| Grant team repo access | Repository → Settings → Collaborators and teams | Select `Read`, `Write`, or `Admin`; adding a parent team affects its children |
| Nest a team | Organization → New team → Parent team dropdown | Nested teams inherit parent permissions (additive) |
| Add members / maintainers | Team page → Add a member / Invite a maintainer | Keep maintainer roles limited to trusted personnel |

Links and references

* [GitHub Docs — About teams](https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams)
* [GitHub Docs — Managing team access to repositories](https://docs.github.com/en/organizations/managing-access-to-your-organizations-repositories/managing-team-access-to-an-organization-repository)

You can repeat these steps to create additional child teams (for example, `macOS Client` or `Android Client`) to reflect your org structure and assign repository permissions at the right level as your organization grows. Use each team’s page to add members, invite maintainers, and fine-tune access.

> [card] [Watch Video](https://learn.kodekloud.com/user/courses/github-administration-certification/module/e4b7bd78-3fb5-4c1c-94d8-e528b0b60484/lesson/47654645-5d27-4db5-8108-2e994ad4ad70)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.